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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
jl 0x40bf84
sbb al, 0x8b
push ss
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.0040adf0
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4504b6
mov eax, dword [edi + 0x150]
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
inc ecx
xor eax, eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], 0x49cc38
mov dword [esp + 0x48], 0x49cc3c
mov dword [esi], ecx
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x47
jne 0x4504ce
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push eax
push esi
push ebx
mov ecx, edi
call fcn.0040ac91
test eax, eax
js 0x450a2d
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4d23a0]
jg 0x4504e0
test eax, eax
jle 0x4504e0
shl eax, 4
add eax, dword [0x4d23dc]
mov esi, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
cmp word [eax + 8], 0
jne 0x40c07e
cmp dword [eax], 0x2b
je 0x4504e7
mov eax, 3
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
jg 0x40c670
mov bl, byte [ebp + 8]
test bl, bl
jne 0x4505a9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp eax, dword [edi + 0x18]
jl 0x450a14
cmp eax, dword [edi + 0x14]
jg 0x450a14
cmp ecx, edx
jne 0x450a14
mov eax, dword [edi + 0x10]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
test eax, eax
js 0x4506ff
lea eax, [esp + 0x48]
mov ecx, 0x4d2380
push eax
call fcn.0040ad81
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x45070c
cmp dword [edi + 0x14], 1
jge 0x40c3c3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], eax
cmp ecx, edx
jae 0x40c0a0
mov eax, dword [esi + edi*4]
lea edx, [edi*4]
inc ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x40], ebx
xor bl, bl
cmp word [eax + 8], 0
je 0x4504f5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x33
je 0x40c6ae
xor bl, bl
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x38], eax
je 0x40c7da
push 1
call fcn.0041fddb
mov ecx, dword [esp + 0x3c]
add esp, 4
mov edx, dword [esp + 0x24]
mov byte [eax], bl
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x70]
call fcn.0040cfa0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], 0
cmp dword [esp + 0x30], eax
je 0x40c828
push 0x10
call fcn.0041fddb
mov esi, eax
add esp, 4
lea eax, [esp + 0x70]
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.004100e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x20]
mov dword [edx + ecx*4], esi
inc ecx
test bl, bl
mov dword [esp + 0x34], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x6c], ecx
jne 0x450543
push dword [edx + ecx*4 - 4]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.0040ec40
test eax, eax
js 0x450a2d
mov ecx, dword [esp + 0x34]
inc edi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi*4]
cmp word [eax + 8], 0x41
je 0x40c99c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp ecx, edx
je 0x40c0a0
mov esi, dword [ebx + 4]
mov eax, dword [esi + ecx*4]
cmp word [eax + 8], 0x40
jne 0x450591
lea eax, [ecx + 1]
cmp eax, edx
je 0x450591
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov esi, dword [eax + 4]
mov eax, dword [esi + edi*4]
cmp word [eax + 8], 0x40
jne 0x40c7bb
inc edi
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [ebx + 0x14]
jge 0x40c0a0
mov ebx, dword [esp + 0x40]
jmp 0x40c670
add eax, eax
mov dword [esp + 0x44], eax
cmp eax, 8
jae 0x40c7ee
mov eax, 8
mov dword [esp + 0x44], eax
xor ecx, ecx
mov dword [esp + 0x54], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
mov edx, dword [esp + 0x28]
add esp, 4
mov esi, eax
test edx, edx
jne 0x40ca1b
mov eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
jmp 0x40c6bc
add eax, eax
mov dword [esp + 0x28], eax
cmp eax, 8
jae 0x40c83c
mov eax, 8
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
mov edx, dword [esp + 0x24]
add esp, 4
mov esi, eax
test edx, edx
jne 0x40ca4a
mov eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], eax
jmp 0x40c703
inc edi
xor edx, edx
nop
mov eax, dword [ecx + edi*4]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x450568
cmp ax, 0x48
je 0x40ca79
cmp ax, 0x40
je 0x40c9c4
inc edi
jmp 0x40c9a0
test edx, edx
je 0x40c777
jmp 0x40c9c1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40c819
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.00420e20
add esp, 0xc
push dword [esp + 0x24]
call fcn.0041fe14
add esp, 4
jmp 0x40c819
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40c867
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.00420e20
add esp, 0xc
push dword [esp + 0x20]
call fcn.0041fe14
add esp, 4
jmp 0x40c867
sub edx, 1
js 0x40c777
jmp 0x40c9c1
push dword [esp + 0x18]
mov ecx, edi
push 0x85
call fcn.0047359c
or eax, 0xffffffff
jmp 0x40c3ba
push dword [esp + 0x18]
mov ecx, edi
push 0x6f
call fcn.0047359c
jmp 0x450a2d
xor eax, eax
jmp 0x40c065
mov eax, 4
mov dword [esp + 0x2c], eax
jmp 0x40c083
mov eax, dword [esi + edx + 4]
cmp word [eax + 8], 0x33
je 0x450511
mov eax, dword [esi + edx]
mov ecx, dword [esi + edx + 4]
mov eax, dword [eax]
cmp eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
je 0x45056e
mov eax, dword [esi + edx]
mov eax, dword [eax]
cmp eax, 0x24
jne 0x45051f
mov bl, 1
jmp 0x45052c
cmp eax, 0x1e
jne 0x45056e
mov dword [esp + 0x58], 0x100
inc edi
mov eax, dword [esi + edi*4]
lea edx, [edi*4]
cmp word [eax + 8], 0
je 0x4504f5
jmp 0x40c69c
push 0
push 1
push dword [esp + 0x64]
push dword [edx + ecx*4 - 4]
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.0041d217
test eax, eax
js 0x450a2d
inc edi
jmp 0x40c777
inc edx
jmp 0x40c9c1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi*4 + 4]
movsx eax, word [eax + 0xa]
push eax
push 0x91
call fcn.0047359c
jmp 0x450a2d
mov eax, dword [esi + ecx*4]
mov ecx, dword [esp + 0xc]
movsx eax, word [eax + 0xa]
push eax
push 0x6f
call fcn.0047359c
jmp 0x450a2d
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x450639
cmp ecx, edx
je 0x40c0ab
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push eax
lea ecx, [esp + 0x4c]
call fcn.00467120
lea ecx, [esp + 0x70]
call fcn.0040cfa0
lea eax, [esp + 0x70]
mov dword [esp + 0x7c], 1
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x74], esi
call fcn.00467099
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push dword [ecx + edi*4 - 4]
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
push eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x40], edi
call fcn.0040ec40
test eax, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
jns 0x450646
jmp 0x450a2d
cmp esi, 1
mov esi, dword [esp + 0xc]
jne 0x40c0af
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00485745
test eax, eax
jne 0x4506e2
lea ecx, [esp + 0x48]
call fcn.00466ffc
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x4506b5
mov byte [esp + 0x17], 0
mov esi, eax
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x4c]
call fcn.00467120
sub esi, 1
jne 0x450675
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
jmp 0x40c0ab
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
jmp 0x40c0af
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
jmp 0x40c0af
mov dword [esp + 0x4c], 0
jmp 0x40c0e8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45071d
push eax
lea ecx, [esp + 0x4c]
call fcn.0040af8a
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x45072e
push eax
lea ecx, [esp + 0x4c]
call fcn.0040af8a
cmp byte [esi + 0x10], 0
jne 0x450741
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x450741
push ecx
call fcn.0041aa42
mov ecx, esi
call fcn.0040988f
push 0x20
push esi
call fcn.0041fdcd
add esp, 8
jmp 0x40c103
test bl, bl
jne 0x450a27
push dword [esp + 0x18]
mov ecx, esi
push 0x70
call fcn.0047359c
jmp 0x450a2d
mov eax, dword [ebp + 0x10]
add dword [eax], 0xfffffffe