Function at 0x404e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.004be1a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.004be1a0
mov al, byte [esp + 0x24]
mov ebx, dword [esp + 0x28]
test al, al
mov byte [esp + 0x1c], 1
jne 0x404eb3
xor ax, ax
mov al, bl
cmp ax, word [edi + 0x150]
je 0x404eb3
movsx cx, byte [0x50d150]
push ecx
push 0x50d151
lea ecx, [esp + 0x18]
call fcn.004be740
mov esi, 3
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004be1b0
call fcn.0047d320
add esp, 8
dec esi
jne 0x404e92
mov al, byte [0x520040]
test al, al
jne 0x405069
mov al, byte [esp + 0x24]
test al, al
jne 0x404f94
test bl, bl
jne 0x404ee0
movsx cx, byte [0x50d170]
push ecx
push 0x50d171
jmp 0x404ef4
movsx dx, byte [0x50d178]
push edx
mov byte [0x50d17c], bl
push 0x50d179
lea ecx, [esp + 0x18]
call fcn.004be740
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
call fcn.0047d320
add esp, 8
movsx esi, ax
call fcn.004ccc40
test al, al
je 0x404f87
push 0x10
push 0x50f95c
lea ecx, [esp + 0x14]
call fcn.004be880
mov esi, 4
call fcn.004de99f
cdq
mov ecx, 0xff
idiv ecx
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.004be5e0
call fcn.004de99f
cdq
mov ecx, 0xff
idiv ecx
lea ecx, [esp + 0xc]
push edx
lea edx, [esi + 1]
push edx
call fcn.004be5e0
add esi, 3
cmp esi, 0x10
jl 0x404f3c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405069
test esi, esi
jg 0x405069
jmp 0x4050f4
test bl, bl
jne 0x404fa8
movsx ax, byte [0x50d188]
push eax
push 0x50d189
jmp 0x404fbc
movsx cx, byte [0x50d190]
push ecx
mov byte [0x50d194], bl
push 0x50d191
lea ecx, [esp + 0x18]
call fcn.004be740
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004be1b0
call fcn.0047d320
add esp, 8
movsx esi, ax
call fcn.004ccc40
test al, al
je 0x4050ec
push 0x10
push 0x50f948
lea ecx, [esp + 0x14]
call fcn.004be880
call fcn.004ccc40
test al, al
jne 0x405069
push 2
lea ecx, [esp + 0x10]
call fcn.004be4c0
cmp al, 2
je 0x405069
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
call fcn.0047d320
add esp, 8
test ax, ax
jle 0x40512b
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
call fcn.0047d320
add esp, 8
test ax, ax
jle 0x40512b
push 0
lea ecx, [esp + 0x10]
call fcn.004be4c0
cmp al, 5
jbe 0x40512b
lea ecx, [esp + 0xc]
call fcn.004be660
cmp ax, 6
jle 0x40512b
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
movzx ax, byte [esp + 0x2c]
push ebx
push eax
mov ecx, edi
call fcn.00404220
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004be2e0
mov ax, si
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
test esi, esi
jg 0x405003
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004be2e0
or ax, 0xffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004be2e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc