Function at 0x405079
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x458
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
mov ebx, dword [esp + 0x464]
push esi
push edi
mov edi, dword [esp + 0x468]
push edi
push str.cl:__s_n
mov dword [esp + 0x24], ebx
call fcn.0048f080
add esp, 8
lea eax, [esp + 0x350]
push eax
call fcn.00523650
lea ecx, [esp + 0x20]
push ecx
call fcn.00523650
push 0xb8
call fcn.004a47b0
push 0xb8
mov esi, eax
push 0
push esi
call fcn.0054a020
or eax, 0xffffffff
add esp, 0xc
test ebx, ebx
lea edx, [esp + 0x20]
mov dword [esi + 0x5c], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
je 0x404fa5
push ebx
lea eax, [esp + 0x354]
push eax
call fcn.00523f80
jmp 0x404fb2
lea ecx, [esp + 0x350]
push ecx
call fcn.004ad9b0
lea edx, [esp + 0xc]
push edx
call fcn.00404600
test eax, eax
je 0x405c04
push ebp
cmp dword [esp + 0x474], 0
jne 0x404fdf
mov dword [esp + 0x474], 1
jmp case.0x405349.38
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
jne 0x405ab7
mov al, byte [ecx]
cmp al, 0x2d
je 0x404ffc
cmp al, 0x2f
jne 0x405ab7
mov edx, ecx
add ecx, 1
cmp byte [ecx], 0x2d
jne 0x405009
add ecx, 1
mov al, byte [ecx]
test al, al
je 0x405028
nop
cmp al, 0x5f
jne 0x405019
mov byte [edx], 0x2d
jmp 0x40501b
mov byte [edx], al
mov al, byte [ecx + 1]
add ecx, 1
add edx, 1
test al, al
jne 0x405010
mov byte [edx], 0
mov edi, dword [esp + 0x2c]
push edi
call fcn.004045a0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4059c7
lea ebx, [ebp + ebp*2]
add ebx, ebx
movzx eax, byte [ebx + ebx + 0x58b048]
add ebx, ebx
cmp eax, 0xd
ja case.0x405059.2
jmp dword [eax*4 + 0x405c38]
mov eax, dword [ebx + 0x58b050]
or dword [esi + 4], eax
mov ecx, dword [ebx + 0x58b050]
not ecx
and dword [esi + 8], ecx
jmp case.0x405349.38
mov edx, dword [ebx + 0x58b050]
or dword [esi], edx
jmp case.0x405349.38
mov eax, dword [ebx + 0x58b050]
mov dword [esi + 0x64], eax
jmp case.0x405349.38
mov dword [esi + 0x6c], 1
jmp case.0x405349.38
mov dword [esi + 0x6c], 0xffffffff
jmp case.0x405349.38
mov ecx, dword [ebx + 0x58b050]
mov dword [esi + 0x68], ecx
jmp case.0x405349.38
mov ebx, dword [ebx + 0x58b050]
cmp ebx, 0xe
ja case.0x405059.2
jmp dword [ebx*4 + 0x405c70]
mov dword [esi + 0x7c], 1
jmp case.0x405349.38
mov dword [esi + 0x7c], 2
jmp case.0x405349.38
mov dword [esi + 0x7c], 3
jmp case.0x405349.38
mov dword [esi + 0x7c], 4
jmp case.0x405349.38
mov dword [esi + 0x7c], 5
jmp case.0x405349.38
call fcn.004046e0
or dword [esi], 0x400
jmp case.0x405349.38
mov edx, dword [esi]
and edx, 0xffefffff
or edx, 0x80000
mov dword [esi], edx
jmp case.0x405349.38
mov eax, dword [esi]
and eax, 0xfff7ffff
or eax, 0x100000
mov dword [esi], eax
jmp case.0x405349.38
or dword [esi + 4], 0x4000000
and dword [esi + 8], 0xfbffffff
jmp case.0x405349.38
or dword [esi + 8], 0x4000000
and dword [esi + 4], 0xfbffffff
jmp case.0x405349.38
lea ecx, [esp + 0x244]
push ecx
call fcn.00523650
push 0
lea edx, [esp + 0x248]
push edx
call fcn.004ad650
mov eax, dword [esp + 0x24c]
push eax
call fcn.0051ca50
mov ecx, dword [esp + 0x24c]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x24c]
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.00522ff0
lea ecx, [esp + 0x244]
push ecx
mov dword [esi + 0xc], eax
call fcn.00527550
jmp case.0x405349.38
lea edx, [esp + 0x134]
push edx
call fcn.00523650
lea eax, [esp + 0x134]
push eax
call fcn.00525420
mov ecx, dword [esp + 0x13c]
mov edx, dword [esi + 0xc]
push ecx
push edx
call fcn.00522ff0
mov dword [esi + 0xc], eax
lea eax, [esp + 0x134]
push eax
call fcn.00527550
jmp case.0x405349.38
mov ecx, dword [ebx + 0x58b050]
mov dword [esi + 0x5c], ecx
jmp case.0x405349.38
lea edx, [esp + 0x10]
push edx
call fcn.00404600
test eax, eax
je 0x405bd6
mov ebx, dword [esp + 0x35c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x98]
call fcn.00404710
mov dword [esi + 0x98], eax
lea eax, [esp + 0x10]
push eax
call fcn.00404600
test eax, eax
je 0x405bd6
mov ebx, dword [esp + 0x35c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
call fcn.00404710
mov dword [esi + 0x9c], eax
jmp case.0x405349.38
lea ecx, [esp + 0x10]
push ecx
call fcn.00404600
test eax, eax
je 0x405b97
mov edx, dword [esp + 0x2c]
push 0
push edx
mov edi, esi
call fcn.00404a20
mov edi, eax
lea eax, [esp + 0x10]
push eax
call fcn.00404600
test eax, eax
je 0x405bac
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0051d430
lea edx, [esp + 0x10]
push edx
mov dword [edi + 0xc], eax
call fcn.00404600
test eax, eax
je 0x405bc1
mov eax, dword [esp + 0x2c]
push eax
call fcn.0051d430
mov dword [edi + 0x10], eax
mov dword [edi + 4], 1
jmp case.0x405349.38
lea ecx, [esp + 0x10]
push ecx
call fcn.00404600
test eax, eax
jne 0x40533a
cmp dword [ebx + 0x58b050], 0x11
jne 0x405bd6
lea edx, [esp + 0x134]
push edx
call fcn.00523650
lea eax, [esp + 0x134]
push eax
call fcn.005247e0
mov ecx, dword [esp + 0x13c]
mov edx, dword [esi + 0x30]
push ecx
push edx
call fcn.00522ff0
mov dword [esi + 0x30], eax
lea eax, [esp + 0x134]
push eax
call fcn.00527550
jmp case.0x405349.38
mov eax, dword [ebx + 0x58b050]
cmp eax, 0x28
ja case.0x405349.9
jmp dword [eax*4 + 0x405cac]
call fcn.004046e0
mov edi, dword [esp + 0x2c]
jmp 0x405abe
mov ebx, dword [esp + 0x35c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x1c]
call fcn.00404710
mov dword [esi + 0x1c], eax
jmp case.0x405349.38
mov ebx, dword [esp + 0x35c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x14]
call fcn.00404710
mov dword [esi + 0x14], eax
jmp case.0x405349.38
mov ebx, dword [esp + 0x35c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x10]
call fcn.00404710
mov dword [esi + 0x10], eax
jmp case.0x405349.38
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0051d430
mov dword [esi + 0x54], eax
jmp case.0x405349.38
mov edx, dword [esp + 0x2c]
push edx
call fcn.0051d430
mov dword [esi + 0x58], eax
jmp case.0x405349.38
mov eax, dword [esp + 0x2c]
push eax
call fcn.0051d430
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], 1
jmp case.0x405349.38
call fcn.004046e0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0051c5e0
mov dword [esi + 0x34], eax
jmp case.0x405349.38
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.00522ff0
mov dword [esi + 0xc], eax
jmp case.0x405349.38
lea edx, [esp + 0x244]
push edx
call fcn.00523650
lea eax, [esp + 0x134]
push eax
call fcn.00523650
mov ecx, dword [esp + 0x35c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x13c]
push eax
call fcn.00524900
mov ecx, dword [esp + 0x13c]
push ecx
lea edx, [esp + 0x248]
push edx
call fcn.004d6ff0
mov eax, dword [esp + 0x24c]
push eax
mov ebx, 4
mov edi, esi
call fcn.00404a80
lea ecx, [esp + 0x134]
push ecx
call fcn.00527550
lea edx, [esp + 0x244]
push edx
call fcn.00527550
jmp case.0x405349.38
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x3c]
push eax
push ecx
call fcn.00522ff0
mov dword [esi + 0x3c], eax
jmp case.0x405349.38
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x48]
push edx
push eax
call fcn.00522ff0
mov dword [esi + 0x48], eax
jmp case.0x405349.38
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x4c]
push ecx
push edx
call fcn.00522ff0
mov dword [esi + 0x4c], eax
jmp case.0x405349.38
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.00522ff0
mov dword [esi + 0x40], eax
jmp case.0x405349.38
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x44]
push edx
push eax
call fcn.00522ff0
mov dword [esi + 0x44], eax
jmp case.0x405349.38
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.00522ff0
mov dword [esi + 0x20], eax
jmp case.0x405349.38
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x24]
push eax
push ecx
invalid