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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 3
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
or cl, byte [ecx - 0x74b3dbb4]
or byte [ebx - 0x74fd76ff], cl
inc ecx
add al, 0x89
inc edx
add al, 0x8b
inc ecx
or byte [ecx + 0x418b0842], cl
or al, 0x8d
mov esi, dword [ecx + eax]
add byte [eax], al
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.00408180
mov dword [esp + 0x44], eax
test eax, eax
je 0x44471d
mov eax, dword [ebx + 0x148]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
mov dword [esp + 0x70], eax
inc ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x4c], 0x48fb84
mov dword [esp + 0x50], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x491cc0
mov dword [edi], ecx
cmp word [eax + 8], 0x47
jne 0x444735
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0040f234
test eax, eax
js 0x444b98
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4c62a0]
jg 0x4106cc
test eax, eax
jle 0x4106cc
shl eax, 4
add eax, dword [0x4c62dc]
mov edi, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
cmp word [eax + 8], 0
jne 0x40fe18
cmp dword [eax], 0x2b
je 0x444747
mov edx, 3
xor ebx, ebx
mov esi, edx
cmp dword [ecx + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jg 0x4103a0
mov edi, dword [ebp + 0xc]
mov bl, byte [ebp + 8]
test bl, bl
jne 0x444825
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x18]
jl 0x444b7f
cmp eax, dword [edi + 0x14]
jg 0x444b7f
cmp edx, ecx
jne 0x444b7f
mov eax, dword [edi + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
test eax, eax
js 0x4448f9
lea eax, [esp + 0x30]
mov ecx, 0x4c6280
push eax
call fcn.0040837c
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x444906
cmp dword [edi + 0x14], 1
jge 0x410179
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [ebx + 0x148], eax
mov eax, dword [ebx]
mov dword [esp + 0x94], 1
mov byte [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov edi, dword [eax + 4]
add edi, ebx
mov byte [esp + 0xa0], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 1
cmp byte [edi + 0xd], 0
mov byte [esp + 0xb8], 0
jne 0x444ad6
push 0x40
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x41070b
lea eax, [esp + 0x88]
mov dword [esi + 8], 0
push eax
mov ecx, esi
call fcn.00409960
lea eax, [esp + 0xa8]
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
push eax
mov dword [ecx + 8], 0
call fcn.00409960
mov byte [esi + 0x30], 0
mov eax, dword [edi + 8]
mov dword [esi + 0x38], eax
mov dword [edi + 8], esi
mov eax, dword [esp + 0x44]
lea esi, [ebx + 0x15c]
inc dword [edi + 4]
mov edi, dword [ebx + 0xf4]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov ebx, dword [esi]
inc eax
push eax
call fcn.004109d0
cmp ebx, dword [esi]
jb 0x444aef
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
mov dword [ebx + 0xf4], edi
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 8]
add ecx, ebx
cmp byte [ecx + 0xd], 0
jne 0x410712
cmp byte [eax + 0x10], 0
mov eax, dword [ebp + 0x18]
je 0x410614
cmp byte [ecx + 0xd], 0
mov byte [eax], 1
jne 0x444aff
mov edi, dword [ecx + 8]
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x410016
cmp dword [esi + 0xc], 4
je 0x444b0a
mov ecx, esi
call fcn.004098c0
push edi
mov ecx, esi
call fcn.00409960
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov eax, dword [esi + ebx + 8]
add esi, ebx
cmp byte [esi + 0xd], 0
jne 0x41071a
cmp byte [eax + 0x18], 0
jne 0x444b24
cmp byte [esi + 0xd], 0
mov eax, dword [esi + 8]
jne 0x410722
cmp byte [eax + 0x30], 0
jne 0x444b3b
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
cmp byte [esi + 0xd], 0
jne 0x444b58
cmp byte [esi + 0xc], 0
jne 0x41072a
mov edi, dword [esi + 8]
mov ebx, dword [edi + 0x38]
test edi, edi
je 0x410089
lea ecx, [edi + 0x20]
call fcn.004098c0
mov ecx, edi
call fcn.004098c0
push edi
call fcn.00420e2c
add esp, 4
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x18]
mov byte [esi + 0xd], 0
dec dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 8]
add ecx, ebx
cmp byte [ecx + 0xd], 0
jne 0x410733
mov edx, dword [esp + 0x9c]
mov dword [eax + 0x14], edx
cmp byte [ecx + 0xd], 0
mov eax, dword [ecx + 8]
jne 0x41073b
mov byte [eax + 0x18], 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
cmp byte [esi + 0xd], 0
jne 0x444b74
mov ecx, dword [esi + 8]
lea eax, [esp + 0xa8]
add ecx, 0x20
push eax
call fcn.00409d3c
cmp byte [esi + 0xd], 0
mov eax, dword [esi + 8]
jne 0x410743
mov ecx, 0x4c6280
mov byte [eax + 0x30], 0
call fcn.004082df
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0xa8]
mov dword [ebx + 0x148], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
call fcn.004098c0
lea ecx, [esp + 0x88]
call fcn.004098c0
lea ecx, [esp + 0x70]
call fcn.004098c0
mov edi, dword [esp + 0x64]
xor esi, esi
test edi, edi
jne 0x4105ab
push dword [esp + 0x60]
call fcn.00420e2c
mov eax, dword [esp + 0x58]
add esp, 4
xor esi, esi
test eax, eax
jne 0x4105d0
push dword [esp + 0x50]
call fcn.00420e2c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
jmp 0x4101a0
lea edx, [eax*4]
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx]
cmp word [eax + 8], si
je 0x4106e7
mov edx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x14]
lea edx, [edx*4 + 4]
jmp 0x4101e0
mov eax, dword [ecx + edx]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x4106f0
cmp ax, 0x48
je 0x410604
cmp ax, 0x40
jne 0x41060b
test edi, edi
jne 0x41060b
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x2c]
jg 0x444a5d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx]
cmp byte [eax], 0
jne 0x44497f
mov eax, dword [esp + 0x20]
or esi, 0x200
cmp dword [0x4c6280], 0
mov edx, dword [edx]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
je 0x4449b6
cmp byte [0x4c6289], 0
jne 0x4449cc
mov ebx, dword [0x4c6284]
push ebx
push edi
mov dword [esp + 0x38], ebx
call fcn.00408740
test al, al
jne 0x4449d9
and esi, 0xff00
push 0x20
mov dword [esp + 0x4c], esi
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x4106fd
xor ecx, ecx
mov dword [esi + 4], 0
mov eax, 8
mov dword [esi + 8], 8
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
push 4
call fcn.00420db6
add esp, 4
test eax, eax
je 0x4106f6
mov dword [eax], 1
mov dword [esi + 0xc], eax
cmp esi, edi
je 0x410326
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
cmp eax, 1
jg 0x4449fc
mov ebx, dword [edi + 4]
mov dword [esi + 4], ebx
lea eax, [ebx + 1]
cmp dword [esi + 8], eax
jb 0x444a1c
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push dword [esi]
call fcn.00420e40
mov ebx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x48]
push 0x10
mov dword [esi + 0x10], eax
call fcn.00420db6
mov edi, eax
add esp, 4
test edi, edi
je 0x410704
push dword [esp + 0x40]
mov ecx, edi
mov dword [edi + 8], 0
call fcn.00409960
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
push dword [ebx]
push esi
call fcn.00408660
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc ebx
add dword [esp + 0x38], 4
inc eax
add eax, edi
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], eax
cmp ebx, dword [edi + 0x14]
jle 0x4101a0
jmp 0x40feae
cmp edx, ecx
jae 0x40fe3e
shl esi, 2
inc ebx
mov dword [esp + 0x2c], ebx
xor bl, bl
mov dword [esp + 0x40], 0
mov eax, dword [edi + esi]
cmp word [eax + 8], 0
je 0x444755
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov eax, dword [eax + edx*4]
cmp word [eax + 8], 0x33
je 0x4103da
xor bl, bl
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x64]
cmp esi, eax
je 0x410517
push 1
call fcn.00420db6
add esp, 4
test eax, eax
je 0x4106d3
mov byte [eax], bl
mov ecx, dword [esp + 0x60]
mov dword [ecx + esi*4], eax
inc esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x64], esi
call fcn.004098c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], 0
cmp dword [esp + 0x54], eax
je 0x410563
push 0x10
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x4106da
lea eax, [esp + 0x70]
mov dword [esi + 8], 0
push eax
mov ecx, esi
call fcn.00409960
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
mov dword [edx + ecx*4], esi
inc ecx
test bl, bl
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x1c]
jne 0x4447c2
push dword [edx + ecx*4 - 4]
mov ecx, ebx
push eax
push edi
call fcn.00409ea0
test eax, eax
js 0x444b98
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi*4]
cmp word [eax + 8], 0x41
je 0x410633
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
je 0x40fe41
mov eax, dword [edi + 4]
mov eax, dword [eax + edx*4]
cmp word [eax + 8], 0x40
jne 0x44480c
lea eax, [edx + 1]
cmp eax, ecx
je 0x44480c
mov edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edi, dword [eax + 4]
mov eax, dword [edi + esi*4]
cmp word [eax + 8], 0x40
jne 0x4104f8
inc esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [ebx + 0x14]
jge 0x40fe3e
mov ebx, dword [esp + 0x2c]
jmp 0x4103a0
add eax, eax
mov dword [esp + 0x48], eax
cmp eax, 8
jae 0x41052b
mov eax, 8
mov dword [esp + 0x48], eax
xor ecx, ecx
mov dword [esp + 0x68], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x41066d
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x64]
jmp 0x4103ea
add eax, eax
mov dword [esp + 0x38], eax
cmp eax, 8
jae 0x410577
mov eax, 8
mov dword [esp + 0x38], eax
xor ecx, ecx
mov dword [esp + 0x58], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
mov edx, dword [esp + 0x54]
add esp, 4
mov esi, eax
test edx, edx
jne 0x410698
mov dword [esp + 0x50], esi
jmp 0x410431
mov ebx, dword [esp + 0x60]
nop
push dword [ebx + esi*4]
call fcn.00420e2c
mov dword [ebx + esi*4], 0
add esp, 4
inc esi
cmp esi, edi
jb 0x4105b0
mov ebx, dword [esp + 0x30]
jmp 0x410148
mov ecx, dword [esp + 0x50]
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x4105f3
mov ecx, edi
call fcn.00409c90
push edi
call fcn.00420e2c
mov eax, dword [esp + 0x58]
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [ecx + esi*4], 0
inc esi
cmp esi, eax
jb 0x4105d4
jmp 0x410162
dec edi
js 0x41020d
inc ebx
add edx, 4
jmp 0x4101e0
mov esi, dword [ebp + 0x14]
mov ecx, esi
mov byte [eax], 0
call fcn.004098c0
mov dword [esi + 0xc], 1
mov dword [esi], 0
jmp 0x410016
inc esi
xor edx, edx
jmp 0x410640
mov eax, dword [ecx + esi*4]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x4106e1
cmp ax, 0x48
je 0x4106c7
cmp ax, 0x40
je 0x410660
inc esi
jmp 0x410640
test edx, edx
jne 0x41065d
mov dword [esp + 0x10], esi
jmp 0x4104b0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x410556
shl ecx, 2
push ecx
push eax
push esi
call fcn.00420e40
add esp, 0xc
push dword [esp + 0x60]
call fcn.00420e2c
add esp, 4
jmp 0x410556
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4105a2
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.00420e40
add esp, 0xc
push dword [esp + 0x50]
call fcn.00420e2c
add esp, 4
jmp 0x4105a2
dec edx
js 0x410664
jmp 0x41065d
xor eax, eax
jmp 0x40fdff
xor eax, eax
jmp 0x4103fe
xor esi, esi
jmp 0x410458
inc edx
jmp 0x41065d
mov edi, dword [esp + 0x20]
jmp 0x444950
inc edi
jmp 0x41060b
xor eax, eax
jmp 0x4102e4
xor esi, esi
jmp 0x4102e7
xor edi, edi
jmp 0x410353
xor esi, esi
jmp 0x40ff86
mov eax, dword [eax + 0x38]
jmp 0x40ffd9
mov eax, dword [eax + 0x38]
jmp 0x41002b
mov eax, dword [eax + 0x38]
jmp 0x410042
invalid