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

Disassembly:
push 0xffffffffffffffff
push 0x41bb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x421140]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x248], eax
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x258], 1
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
push 0x20
mov byte [esp + 0x25c], 2
call fcn.00412748
add esp, 4
cmp eax, esi
je 0x40a0d4
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
jmp 0x40a0d6
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 2
call fcn.00404860
mov ecx, dword [esp + 0x264]
mov edx, dword [ecx + 0x14]
xor edi, edi
cmp edx, esi
jle 0x40a7f6
mov eax, dword [esp + 0x264]
mov ebx, dword [eax + 0x18]
mov ebp, eax
add ebp, 4
cmp ebx, 0x10
jb 0x40a11d
mov eax, dword [ebp]
jmp 0x40a11f
mov eax, ebp
xor ecx, ecx
mov cl, byte [eax + edi]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00401260
test eax, eax
je 0x40a383
dec edx
cmp edi, edx
je 0x40aa69
cmp ebx, 0x10
jb 0x40a149
mov eax, dword [ebp]
jmp 0x40a14b
mov eax, ebp
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [eax + edi]
push edx
call fcn.00401260
cmp eax, 0xb
je 0x40a186
cmp ebx, 0x10
jb 0x40a169
mov eax, dword [ebp]
jmp 0x40a16b
mov eax, ebp
movsx eax, byte [eax + edi]
push eax
call fcn.00401260
cmp eax, 9
je 0x40a186
test edi, edi
je 0x40aa69
mov ecx, dword [esp + 0x1c]
cmp ebx, 0x10
jb 0x40a190
mov eax, dword [ebp]
jmp 0x40a192
mov eax, ebp
cmp byte [eax + edi], 0x3c
jne 0x40a1af
cmp ebx, 0x10
jb 0x40a1a2
mov eax, dword [ebp]
jmp 0x40a1a4
mov eax, ebp
cmp byte [eax + edi + 1], 0x3c
jne 0x40a9c2
cmp ebx, 0x10
jb 0x40a1b9
mov eax, dword [ebp]
jmp 0x40a1bb
mov eax, ebp
cmp byte [eax + edi], 0x3e
jne 0x40a1d8
cmp ebx, 0x10
jb 0x40a1cb
mov eax, dword [ebp]
jmp 0x40a1cd
mov eax, ebp
cmp byte [eax + edi + 1], 0x3e
jne 0x40aa19
cmp esi, edi
jl 0x40a202
jne 0x40a2f1
cmp ebx, 0x10
jb 0x40a1ec
mov eax, dword [ebp]
jmp 0x40a1ee
mov eax, ebp
xor edx, edx
mov dl, byte [eax + edi]
push edx
call fcn.00401260
cmp eax, 9
jne 0x40a2f1
mov eax, edi
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x270]
call fcn.00402da0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x264], 5
call fcn.00402080
cmp dword [esp + 0xa4], 0x10
mov byte [esp + 0x258], 2
jb 0x40a257
mov edx, dword [esp + 0x90]
push edx
call fcn.00412c8d
add esp, 4
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00410a30
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x34]
add esp, 4
push edx
lea ecx, [esp + 0x1b4]
call fcn.00411a80
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x25c], 6
call fcn.00411e00
mov ecx, dword [esp + 0x268]
push ecx
lea ecx, [esp + 0x1b4]
call fcn.00411ea0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1b0]
push edx
add ecx, 0x10
call fcn.00409c80
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x258], 2
call fcn.00411ab0
mov eax, dword [esp + 0x264]
cmp dword [eax + 0x18], 0x10
jb 0x40a303
mov eax, dword [ebp]
jmp 0x40a305
mov eax, ebp
mov ecx, dword [esp + 0x18]
lea esi, [eax + edi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40a317
xor edx, edx
jmp 0x40a320
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 8]
sub edx, eax
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x40a33e
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x40a33e
mov eax, dword [ebx + 8]
mov cl, byte [esi]
mov byte [eax], cl
inc eax
mov dword [ebx + 8], eax
jmp 0x40a34c
mov eax, dword [ebx + 8]
push esi
push 1
push eax
mov ecx, ebx
call fcn.004036a0
mov edx, dword [esp + 0x264]
mov ecx, dword [edx + 0x18]
cmp ecx, 0x10
jb 0x40a360
mov eax, dword [ebp]
jmp 0x40a362
mov eax, ebp
cmp byte [eax + edi], 0x3e
je 0x40a37a
cmp ecx, 0x10
jb 0x40a372
mov eax, dword [ebp]
jmp 0x40a374
mov eax, ebp
cmp byte [eax + edi], 0x3c
jne 0x40a37b
inc edi
lea esi, [edi + 1]
jmp 0x40a7e1
cmp ebx, 0x10
jb 0x40a38d
mov eax, dword [ebp]
jmp 0x40a38f
mov eax, ebp
cmp byte [eax + edi], 0x28
jne 0x40a4ce
cmp esi, edi
jge 0x40a486
mov eax, edi
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x270]
call fcn.00402da0
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x264], 7
call fcn.00402080
cmp dword [esp + 0x88], 0x10
mov byte [esp + 0x258], 2
jb 0x40a3f1
mov edx, dword [esp + 0x74]
push edx
call fcn.00412c8d
add esp, 4
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], esi
mov byte [esp + 0x78], 0
call fcn.00410a30
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x34]
add esp, 4
push edx
lea ecx, [esp + 0x180]
call fcn.00411a80
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x180]
mov byte [esp + 0x25c], 8
call fcn.00411e00
mov ecx, dword [esp + 0x268]
push ecx
lea ecx, [esp + 0x180]
call fcn.00411ea0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x17c]
push edx
add ecx, 0x10
call fcn.00409c80
lea ecx, [esp + 0x17c]
mov byte [esp + 0x258], 2
call fcn.00411ab0
jmp 0x40a488
xor esi, esi
push 0x20
call fcn.00412748
add esp, 4
cmp eax, esi
je 0x40a4aa
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
jmp 0x40a4ac
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 2
call fcn.00404860
lea esi, [edi + 1]
jmp 0x40a7e1
cmp ebx, 0x10
jb 0x40a4d8
mov eax, dword [ebp]
jmp 0x40a4da
mov eax, ebp
cmp byte [eax + edi], 0x29
jne 0x40a6ac
cmp esi, edi
jge 0x40a5c9
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x268]
push esi
lea edx, [esp + 0x5c]
push edx
call fcn.00402da0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x264], 0xb
call fcn.00402080
cmp dword [esp + 0x6c], 0x10
mov byte [esp + 0x258], 2
jb 0x40a538
mov eax, dword [esp + 0x58]
push eax
call fcn.00412c8d
add esp, 4
lea ecx, [esp + 0xf8]
push ecx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00410a30
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x34]
add esp, 4
push eax
lea ecx, [esp + 0x1e8]
call fcn.00411a80
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x25c], 0xc
call fcn.00411e00
mov edx, dword [esp + 0x268]
push edx
lea ecx, [esp + 0x1e8]
call fcn.00411ea0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1e4]
push eax
add ecx, 0x10
call fcn.00409c80
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x258], 2
call fcn.00411ab0
mov ebp, dword [esp + 0x30]
cmp ebp, 2
jb 0x40a913
lea ecx, [esp + 0x218]
call fcn.00411a60
mov ecx, dword [esp + 0x268]
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push esi
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0x264], 0xd
call fcn.00405970
push eax
lea ecx, [esp + 0x21c]
mov byte [esp + 0x25c], 0xe
call fcn.00403630
lea ecx, [esp + 0xa8]
mov byte [esp + 0x258], 0xd
call fcn.00411ab0
test esi, esi
je 0x40a645
mov ecx, esi
call fcn.00404620
push esi
call fcn.00412c8d
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40a65c
dec eax
mov dword [esp + 0x30], eax
jne 0x40a65c
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
add ecx, eax
lea eax, [esp + 0x20]
dec ecx
mov edx, eax
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x40a680
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x218]
mov dword [esp + 0x18], ecx
push edx
add ecx, 0x10
call fcn.00409c80
lea esi, [edi + 1]
lea ecx, [esp + 0x218]
jmp 0x40a7d4
dec edx
cmp edi, edx
jne 0x40a7e1
cmp esi, edi
jge 0x40a719
mov ecx, dword [esp + 0x264]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x40]
push eax
call fcn.00402da0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x264], 0xf
call fcn.00402080
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x258], 2
jb 0x40a702
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jmp 0x40a75f
jne 0x40a75f
mov ecx, dword [esp + 0x264]
push 1
push esi
lea edx, [esp + 0xe4]
push edx
call fcn.00402da0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x264], 0x10
call fcn.00402080
lea ecx, [esp + 0xdc]
mov byte [esp + 0x258], 2
call fcn.00401d80
cmp esi, edi
jl 0x40a765
jne 0x40a7e1
lea eax, [esp + 0xf8]
push eax
call fcn.00410a30
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x34]
add esp, 4
push edx
lea ecx, [esp + 0x14c]
call fcn.00411a80
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x14c]
mov byte [esp + 0x25c], 0x11
call fcn.00411e00
mov ecx, dword [esp + 0x268]
push ecx
lea ecx, [esp + 0x14c]
call fcn.00411ea0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x148]
push edx
add ecx, 0x10
call fcn.00409c80
lea ecx, [esp + 0x148]
mov byte [esp + 0x258], 2
call fcn.00411ab0
mov eax, dword [esp + 0x264]
mov edx, dword [eax + 0x14]
inc edi
cmp edi, edx
jl 0x40a104
xor esi, esi
mov edi, dword [esp + 0x30]
xor ebp, ebp
cmp edi, 1
je 0x40aada
cmp edi, esi
je 0x40a8c6
lea ebx, [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea ecx, [edi + edx]
dec ecx
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
mov edx, ebx
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x40a832
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
cmp esi, ebp
je 0x40a8b3
mov dword [esp + 0x18], esi
mov edi, dword [esi + 0x14]
cmp edi, ebp
mov byte [esp + 0x258], 0x12
je 0x40a87c
mov ebp, dword [esi + 0x18]
cmp edi, ebp
je 0x40a86e
lea esp, [esp]
mov ecx, edi
call fcn.00411ab0
add edi, 0x34
cmp edi, ebp
jne 0x40a860
mov eax, dword [esi + 0x14]
push eax
call fcn.00412c8d
add esp, 4
xor ebp, ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov eax, dword [esi + 4]
cmp eax, ebp
mov byte [esp + 0x258], 2
je 0x40a89d
push eax
call fcn.00412c8d
add esp, 4
push esi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.00412c8d
mov edi, dword [esp + 0x34]
add esp, 4
cmp edi, ebp
je 0x40a8c6
dec edi
mov dword [esp + 0x30], edi
jne 0x40a811
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x34]
push 0x28
push 0x13
push edx
call fcn.0040de20
mov esi, dword [esp + 0x26c]
add esp, 0xc
push ebp
mov ecx, esi
call fcn.00411a80
cmp dword [esp + 0x110], 0x10
jb 0x40a903
mov eax, dword [esp + 0xfc]
push eax
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x110], 0xf
jmp 0x40ac35
test ebp, ebp
je 0x40a974
lea ebx, [esp + 0x20]
jmp 0x40a920
mov ecx, dword [esp + 0x2c]
add ecx, ebp
dec ecx
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
mov edx, ebx
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x40a940
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40a961
mov ecx, esi
call fcn.00404620
push esi
call fcn.00412c8d
mov ebp, dword [esp + 0x34]
add esp, 4
test ebp, ebp
je 0x40a974
dec ebp
mov dword [esp + 0x30], ebp
jne 0x40a920
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x264]
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x40a98c
mov eax, dword [eax + 4]
jmp 0x40a98f
add eax, 4
movsx ecx, byte [eax + edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x34]
push ecx
push 0x13
push eax
call fcn.0040de20
mov esi, dword [esp + 0x26c]
add esp, 0xc
push 0
mov ecx, esi
call fcn.00411a80
cmp dword [esp + 0x110], ebx
jmp 0x40aaad
mov eax, dword [esp + 0x264]
cmp dword [eax + 0x18], 0x10
jb 0x40a9d4
mov eax, dword [eax + 4]
jmp 0x40a9d7
add eax, 4
movsx edx, byte [eax + edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x34]
push edx
push 0xa
push ecx
call fcn.0040de20
mov esi, dword [esp + 0x26c]
add esp, 0xc
push 0
mov ecx, esi
call fcn.00411a80
cmp dword [esp + 0x110], 0x10
jb 0x40aabf
mov edx, dword [esp + 0xfc]
push edx
jmp 0x40aab7
mov eax, dword [esp + 0x264]
cmp dword [eax + 0x18], 0x10
jb 0x40aa2b
mov eax, dword [eax + 4]
jmp 0x40aa2e
add eax, 4
movsx eax, byte [eax + edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x34]
push eax
push 0xa
push edx
call fcn.0040de20
mov esi, dword [esp + 0x26c]
add esp, 0xc
push 0
mov ecx, esi
call fcn.00411a80
cmp dword [esp + 0x110], 0x10
jb 0x40aabf
mov eax, dword [esp + 0xfc]
push eax
jmp 0x40aab7
mov eax, dword [esp + 0x264]
cmp dword [eax + 0x18], 0x10
jb 0x40aa7b
mov eax, dword [eax + 4]
jmp 0x40aa7e
add eax, 4
movsx ecx, byte [eax + edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x34]
push ecx
push 0xa
push eax
call fcn.0040de20
mov esi, dword [esp + 0x26c]
add esp, 0xc
push 0
mov ecx, esi
call fcn.00411a80
cmp dword [esp + 0x110], 0x10
jb 0x40aabf
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
jmp 0x40ac3c
lea ecx, [esp + 0x114]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call fcn.00411a60
mov ecx, dword [esp + 0x268]
mov edi, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0xb0]
mov bl, 0x13
push edx
mov byte [esp + 0x264], bl
call fcn.00405970
mov esi, eax
mov eax, dword [esi]
push 0xffffffffffffffff
push ebp
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x124]
mov byte [esp + 0x264], 0x14
mov dword [esp + 0x120], eax
call fcn.00402080
mov edx, dword [esi + 0x20]
mov dword [esp + 0x134], edx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x138], eax
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x13c], ecx
mov dl, byte [esi + 0x2c]
mov byte [esp + 0x140], dl
mov eax, dword [esi + 0x30]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x144], eax
mov byte [esp + 0x258], bl
call fcn.00411ab0
cmp edi, ebp
je 0x40ab94
mov ecx, edi
call fcn.00404620
push edi
call fcn.00412c8d
add esp, 4
mov ecx, dword [esp + 0x114]
mov esi, dword [esp + 0x260]
mov dword [esi], ecx
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ebp
lea edx, [esp + 0x120]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebp
push edx
mov byte [ecx + 4], 0
call fcn.00402080
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x13c]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x144]
mov dword [esi + 0x20], eax
mov al, byte [esp + 0x140]
mov dword [esi + 0x30], ecx
lea ecx, [esp + 0x114]
mov dword [esi + 0x28], edx
mov byte [esi + 0x2c], al
mov dword [esp + 0x34], 1
mov byte [esp + 0x258], 2
call fcn.00411ab0
cmp dword [esp + 0x110], 0x10
jb 0x40ac2e
mov edx, dword [esp + 0xfc]
push edx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc], 0
call fcn.004027d0
mov ecx, dword [esp + 0x250]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x240]
pop ebx
call fcn.00412dca
add esp, 0x24c
ret 0xc