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

Disassembly:
push 0xffffffffffffffff
push 0x429817
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov eax, dword [0x435b00]
push ebp
push esi
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x1e0]
push 0x42b54c
push eax
mov ebp, ecx
call fcn.00412014
mov esi, eax
add esp, 8
test esi, esi
jne 0x40407d
xor al, al
jmp 0x404c06
mov eax, dword [ebp + 0x84]
test eax, eax
mov dword [ebp + 0x6c], 0
je 0x4040a1
push 0x42b5d0
push 0
mov dword [ebp + 0x6c], 1
call eax
add esp, 8
mov ecx, ebp
call fcn.004034e0
mov ecx, dword [ebp + 0x84]
test ecx, ecx
je 0x4040c6
mov eax, dword [ebp + 0x6c]
lea edx, [eax + 1]
push 0x42b5c4
push eax
mov dword [ebp + 0x6c], edx
call ecx
add esp, 8
push esi
push 4
push 1
push str.AXPK
call fcn.0041212e
push esi
push 4
push 1
push 0x4350a4
call fcn.0041212e
mov eax, dword [ebp + 0x44]
add esp, 0x20
test eax, eax
jne 0x4040f2
xor ecx, ecx
jmp 0x4040fa
mov ecx, dword [ebp + 0x48]
sub ecx, eax
sar ecx, 6
mov eax, dword [ebp + 0x54]
push ebx
push edi
mov edi, dword [ebp + 0x58]
xor edx, edx
cmp eax, edi
je 0x404115
cmp byte [eax], 0
jne 0x40410e
inc edx
add eax, 0x3c
cmp eax, edi
jne 0x404108
push esi
lea eax, [ecx + edx - 1]
push 0x20
lea ecx, [ebp + 0x20]
push 1
push ecx
mov dword [ebp + 0x2c], eax
call fcn.0041212e
mov edx, dword [ebp + 0x28]
sub edx, 0x28
push edx
call fcn.0040acf0
mov ecx, dword [ebp + 0x28]
sub ecx, 0x28
mov edx, ecx
mov ebx, eax
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x24]
push 0
push eax
push esi
call fcn.004116d7
mov ecx, dword [ebp + 0x28]
push esi
sub ecx, 0x28
push ecx
push 1
push ebx
call fcn.0041212e
push ebx
call fcn.0040aa00
mov ebx, dword [ebp + 0x34]
sub ebx, dword [ebp + 0x28]
push ebx
call fcn.0040acf0
mov edi, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [esp + 0x48], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x28]
xor edi, edi
push edi
push eax
push esi
call fcn.004116d7
add esp, 0x44
push esi
push ebx
mov ebx, dword [esp + 0x18]
push 1
push ebx
call fcn.0041212e
push ebx
call fcn.0040aa00
add esp, 0x14
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x1e0], edi
mov edi, dword [ebp + 0x44]
cmp edi, eax
mov dword [esp + 0x14], ecx
je 0x404612
mov dword [esp + 0x18], 0x7ffffffe
mov edx, dword [ebp + 0x84]
test edx, edx
je 0x404228
mov eax, dword [ebp + 0x6c]
lea ecx, [eax + 1]
mov dword [ebp + 0x6c], ecx
cmp dword [edi + 0x18], 0x10
jb 0x40421e
mov ecx, dword [edi + 4]
jmp 0x404221
lea ecx, [edi + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, dword [edi + 0x3c]
cmp eax, 1
jne 0x404334
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0x34]
and eax, 0x7fff
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x24]
lea edx, [eax + edx*4]
mov eax, ecx
and eax, 0x3fffffff
push 0
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x28]
push edx
push esi
lea ebx, [eax + ecx*4]
call fcn.004116d7
push esi
push 4
lea ecx, [edi + 0x28]
push 1
push ecx
call fcn.0041212e
push esi
push 4
lea edx, [edi + 0x2c]
push 1
push edx
call fcn.0041212e
push esi
push 4
lea eax, [esp + 0x54]
push 1
push eax
call fcn.0041212e
push 0
push ebx
push esi
call fcn.004116d7
add esp, 0x48
push esi
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0041212e
push esi
push 4
lea ebx, [edi + 0x20]
push 1
push ebx
call fcn.0041212e
push esi
push 4
lea edx, [edi + 0x24]
push 1
push edx
call fcn.0041212e
mov eax, dword [ebx]
push eax
call fcn.0040acf0
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp]
push 0
push ecx
push edx
mov dword [esp + 0x5c], eax
call fcn.004116d7
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x5c]
add esp, 0x40
push eax
push ecx
push 1
push edx
call fcn.004115fc
mov eax, dword [esp + 0x24]
push 0
push eax
push esi
call fcn.004116d7
mov ecx, dword [ebx]
mov edx, dword [esp + 0x38]
push esi
push ecx
push 1
push edx
call fcn.0041212e
mov eax, dword [esp + 0x48]
push eax
call fcn.0040aa00
mov ecx, dword [ebx]
mov eax, dword [esp + 0x44]
add esp, 0x30
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4045f2
cmp eax, 2
jne 0x4045f2
push 0xffffffffffffffff
push 0
mov ebx, 0xf
push edi
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], 0
mov byte [esp + 0xac], 0
call fcn.00401fe0
push 1
push 0
push 0x42b570
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1ec], 1
call fcn.004015f0
cmp eax, 0xffffffff
je 0x4043e9
push eax
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xa8]
call fcn.00402940
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x1ec], 2
call fcn.00401fe0
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x1e0], 1
jb 0x4043d8
mov eax, dword [esp + 0x40]
push eax
call fcn.0041fcc6
add esp, 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.00401860
cmp dword [esp + 0x8c], 0x10
mov ecx, dword [esp + 0x78]
jae 0x404407
lea ecx, [esp + 0x78]
lea edx, [edi + 0x38]
push edx
lea edx, [edi + 0x30]
push edx
lea ebx, [edi + 0x2c]
push ebx
lea eax, [edi + 0x28]
push eax
push ecx
mov ecx, ebp
call fcn.00401060
cmp eax, 0xffffffff
mov dword [edi + 0x34], eax
je 0x4046a1
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x34]
and eax, 0x7fff
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, edx
and eax, 0x3fffffff
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x28]
push 0
push ecx
lea edx, [eax + edx*4]
push esi
mov dword [esp + 0x1c], edx
call fcn.004116d7
push esi
push 4
lea eax, [edi + 0x28]
push 1
push eax
call fcn.0041212e
push esi
push 4
push 1
push ebx
call fcn.0041212e
push esi
push 4
lea eax, [esp + 0x54]
push 1
push eax
call fcn.0041212e
add esp, 0x3c
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
mov byte [esp + 0x1e8], 3
call fcn.00403630
test al, al
je 0x40472b
mov eax, dword [esp + 0xd0]
mov ebx, 0x10
cmp eax, ebx
mov eax, dword [esp + 0xbc]
jae 0x4044ec
lea eax, [esp + 0xbc]
push 0x42b548
push eax
call fcn.00412014
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4047f5
push 2
push 0
push eax
call fcn.004116d7
mov ecx, dword [esp + 0x28]
push ecx
lea ebx, [edi + 0x20]
call fcn.00411f77
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
mov dword [ebx], eax
mov dword [edi + 0x24], 0x80000000
call fcn.004116d7
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call fcn.004116d7
push esi
push 4
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0041212e
push esi
push 4
push 1
push ebx
call fcn.0041212e
add esp, 0x48
push esi
push 4
lea eax, [edi + 0x24]
push 1
push eax
call fcn.0041212e
mov edx, dword [ebx]
push edx
call fcn.0040acf0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push 1
push eax
mov dword [esp + 0x34], eax
call fcn.004115fc
mov eax, dword [esp + 0x40]
push eax
call fcn.00411dc4
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push esi
call fcn.004116d7
mov edx, dword [ebx]
mov eax, dword [esp + 0x44]
push esi
push edx
push 1
push eax
call fcn.0041212e
mov ecx, dword [esp + 0x54]
add esp, 0x44
push ecx
call fcn.0040aa00
mov edx, dword [ebx]
mov dword [edi + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, edx
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], eax
call fcn.00401ac0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1e0], 0
call fcn.00401ac0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x48]
add edi, 0x40
inc edx
inc ecx
cmp edi, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
jne 0x404200
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, ebp
call fcn.00403180
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x404642
mov ecx, dword [ebp + 0x6c]
lea edx, [ecx + 1]
push 0x42b5b0
push ecx
mov dword [ebp + 0x6c], edx
call eax
add esp, 8
mov ecx, dword [ebp + 0x78]
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404660
sub eax, ebx
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00402420
mov ebx, dword [ebp + 0x54]
cmp ebx, dword [ebp + 0x58]
mov byte [esp + 0x1e0], 4
mov dword [esp + 0x18], ebx
je 0x4049f6
add ebx, 0x24
nop
cmp dword [ebx + 0x14], 0x10
jb 0x404861
mov eax, dword [ebx]
jmp 0x404863
mov eax, dword [esp + 0x8c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x78]
jae 0x4046b9
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xd8]
push 0x42b590
push eax
call fcn.00411d20
add esp, 0xc
push 1
push 0x42b520
lea ecx, [esp + 0xdc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0xb4], esi
jb 0x4046ff
mov edx, dword [esp + 0xa0]
push edx
call fcn.0041fcc6
add esp, 4
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
cmp eax, esi
jmp 0x404a51
mov eax, dword [esp + 0x8c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x78]
jae 0x404743
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xd8]
push 0x42b574
push ecx
call fcn.00411d20
add esp, 0xc
push 1
push 0x42b520
lea edx, [esp + 0xdc]
push edx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0xd0], esi
jb 0x40478a
mov eax, dword [esp + 0xbc]
push eax
call fcn.0041fcc6
add esp, 4
cmp dword [esp + 0xb4], esi
mov edi, 0xf
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], 0
jb 0x4047be
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0041fcc6
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], 0
jb 0x404a60
mov edx, dword [esp + 0x78]
push edx
call fcn.0041fcc6
add esp, 4
xor al, al
jmp 0x404c04
cmp dword [esp + 0xd0], ebx
mov eax, dword [esp + 0xbc]
jae 0x40480c
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xd8]
push 0x42b508
push eax
call fcn.00411d20
add esp, 0xc
push 1
push 0x42b520
lea ecx, [esp + 0xdc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xb8]
call fcn.00401ac0
lea ecx, [esp + 0x9c]
call fcn.00401ac0
lea ecx, [esp + 0x74]
call fcn.00401ac0
xor al, al
jmp 0x404c04
mov eax, ebx
push 0x42b548
push eax
call fcn.00412014
mov edi, eax
add esp, 8
test edi, edi
je 0x404a67
push 2
push 0
push edi
call fcn.004116d7
push edi
call fcn.00411f77
push edi
mov dword [esp + 0x24], eax
call fcn.00411dc4
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
add esp, 0x14
test cl, cl
je 0x40490c
cmp dword [ebx - 8], 0x10
jb 0x4048ad
mov edx, dword [ebx - 0x1c]
jmp 0x4048b0
lea edx, [ebx - 0x1c]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4048b5
sub eax, edi
push eax
push 0
push edx
lea ecx, [esp + 0x64]
call fcn.004015f0
mov edi, eax
cmp edi, 0xffffffff
je 0x4049d8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x90]
push ecx
push edx
mov ecx, ebp
call fcn.004011f0
mov ecx, dword [ebx - 0xc]
push 8
lea eax, [esp + 0x94]
push eax
lea edx, [ecx + edi + 1]
push 8
push edx
lea ecx, [esp + 0x68]
call fcn.00402540
jmp 0x4049d8
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.00401d10
push 1
push 0x42b570
lea ecx, [esp + 0x60]
call fcn.00401e00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x90]
push ecx
push edx
mov ecx, ebp
call fcn.004011f0
lea eax, [esp + 0x90]
lea edi, [eax + 1]
jmp 0x404950
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404950
sub eax, edi
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x60]
call fcn.00401e00
push 1
push 0x42b570
lea ecx, [esp + 0x60]
call fcn.00401e00
cmp dword [ebx - 8], 0x10
jb 0x404986
mov eax, dword [ebx - 0x1c]
jmp 0x404989
lea eax, [ebx - 0x1c]
lea ecx, [esp + 0x90]
push ecx
push 2
push eax
mov ecx, ebp
call fcn.00401010
push eax
mov ecx, ebp
call fcn.004011f0
lea eax, [esp + 0x90]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049b0
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x60]
call fcn.00401e00
push 0xa
push 1
lea ecx, [esp + 0x60]
call fcn.00401f10
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x58]
add eax, 0x3c
add ebx, 0x3c
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x404690
mov edi, 0xf
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
push str._list_
mov ecx, ebp
mov ebx, 0x10
call fcn.00401060
cmp eax, 0xffffffff
jne 0x404ad5
cmp dword [esp + 0x70], ebx
jb 0x404a37
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041fcc6
add esp, 4
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x70], edi
cmp eax, ebx
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x404a60
mov eax, dword [esp + 0x78]
push eax
call fcn.0041fcc6
add esp, 4
xor al, al
jmp 0x404c04
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x38]
mov esi, 0x10
cmp ecx, esi
jb 0x404a7c
mov eax, dword [eax + 0x24]
jmp 0x404a7f
add eax, 0x24
push eax
lea eax, [esp + 0xd8]
push 0x42b508
push eax
call fcn.00411d20
add esp, 0xc
push 1
push 0x42b520
lea ecx, [esp + 0xdc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x70], esi
jb 0x404abf
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041fcc6
add esp, 4
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x70], 0xf
cmp eax, esi
jmp 0x404a44
mov ecx, dword [esp + 0x24]
lea edx, [eax + eax*2]
push 0
lea eax, [edx*4 + 0x28]
push eax
add ecx, 0x7ffffffe
push esi
mov dword [esp + 0x2c], ecx
call fcn.004116d7
push esi
push 4
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0041212e
push esi
push 4
lea edx, [esp + 0x5c]
push 1
push edx
call fcn.0041212e
push esi
push 4
lea eax, [esp + 0x54]
push 1
push eax
call fcn.0041212e
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x28]
and eax, 0x3fffffff
lea ecx, [eax + eax*2]
push 0
lea eax, [edx + ecx*4]
push eax
push esi
call fcn.004116d7
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xb4]
add esp, 0x48
push esi
push 4
lea eax, [esp + 0x30]
push 1
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], 0x80000000
call fcn.0041212e
push esi
push 4
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0041212e
push esi
push 4
lea edx, [esp + 0x5c]
push 1
push edx
call fcn.0041212e
mov eax, dword [esp + 0x58]
push 0
push eax
push esi
call fcn.004116d7
mov eax, dword [esp + 0xac]
add esp, 0x3c
cmp eax, ebx
mov eax, dword [esp + 0x5c]
jae 0x404bac
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
push esi
push 1
push ecx
push eax
call fcn.0041212e
push esi
call fcn.00411dc4
mov eax, dword [esp + 0x84]
add esp, 0x14
cmp eax, ebx
jb 0x404bdb
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041fcc6
add esp, 4
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x404c02
mov eax, dword [esp + 0x78]
push eax
call fcn.0041fcc6
add esp, 4
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x1d0]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c8]
pop ebp
call fcn.00411505
add esp, 0x1d4
ret 4