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

Disassembly:
push 0xffffffffffffffff
push 0x50d607
mov eax, dword fs:[0]
push eax
sub esp, 0xbfc
mov eax, dword [0x5415a0]
xor eax, esp
mov dword [esp + 0xbf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5415a0]
xor eax, esp
push eax
lea eax, [esp + 0xc10]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc28]
mov edi, dword [esp + 0xc20]
mov ebp, dword [esp + 0xc24]
mov esi, dword [esp + 0xc2c]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], esi
cmp eax, ebx
je 0x40d0cb
cmp ebp, ebx
je 0x40d0cb
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cba6
sub eax, edx
sar eax, 1
je 0x40d0cb
cmp esi, ebx
je 0x40d0cb
push ebp
lea ecx, [esp + 0x98]
call fcn.004393e0
push 0x7fe
lea ecx, [esp + 0x412]
xor eax, eax
push ebx
mov dword [esp + 0xc20], ebx
push ecx
mov word [esp + 0x418], ax
call fcn.004d4670
add esp, 0xc
cmp byte [esp + 0x1b0], 0
lea eax, [esp + 0xa0]
jne 0x40cc0f
mov eax, dword [esp + 0x9c]
add eax, 4
push 0x54cf20
push eax
call fcn.004cd7c8
add esp, 8
test eax, eax
je 0x40cc41
push 0x522f54
mov ecx, edi
call fcn.00402860
lea ecx, [esp + 0x94]
call fcn.00439450
jmp 0x40d0e6
mov edx, 0x4000
test word [0x54cf26], dx
jne 0x40cc6c
push 0x522f6c
mov ecx, edi
call fcn.00402860
lea ecx, [esp + 0x94]
call fcn.00439450
jmp 0x40d0e6
lea eax, [esp + 0x94]
call fcn.00439a40
push eax
push 0x521234
lea edx, [esp + 0x414]
call fcn.00402480
add esp, 8
push 0x54ccd0
lea eax, [esp + 0x410]
push eax
call dword [0x513354]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x40ccc6
push 0x522f88
mov ecx, edi
call fcn.00402860
lea ecx, [esp + 0x94]
call fcn.00439450
jmp 0x40d0e6
mov byte [esp + 0x17], 1
xor ebp, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], fcn.004cd5fd
mov dword [esp + 0x50], fcn.004cf7ca
mov dword [esp + 0x54], fcn.004cd520
mov byte [esp + 0xc18], 1
lea ecx, [ecx]
mov ecx, 0x52120c
mov eax, 0x54ccfc
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cd36
cmp dx, bx
je 0x40cd32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cd36
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cd10
xor eax, eax
jmp 0x40cd3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40cf48
mov ecx, 0x521210
mov eax, 0x54ccfc
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cd76
cmp dx, bx
je 0x40cd72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cd76
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cd50
xor eax, eax
jmp 0x40cd7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40cf48
push 0x54ccfc
lea ecx, [esp + 0x1c0]
call fcn.004393e0
mov byte [esp + 0xc18], 2
mov eax, dword [esp + 0x1c0]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d0ab4
mov esi, eax
mov eax, dword [esp + 0x1c4]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push esi
mov dword [esp + 0x30], esi
call fcn.004d4670
mov ecx, dword [esp + 0x1cc]
add esp, 0xc
push ecx
lea eax, [esp + 0x1c0]
call fcn.00439a40
push eax
inc ecx
push ecx
push esi
call fcn.004cfb5f
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x40]
call fcn.0042eb20
cmp ebp, ebx
jne 0x40cf34
lea eax, [esp + 0x58]
push eax
mov ebp, 1
call fcn.0044e450
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x2e8]
call fcn.004393e0
push 0x52118c
push 0x523340
lea edx, [esp + 0x2ec]
mov byte [esp + 0xc20], 4
call fcn.00439ae0
push 0x54ccfc
push 0x523340
lea edx, [esp + 0x2f4]
call fcn.00439ae0
add esp, 0x10
push 0x522fc8
lea ecx, [esp + 0x2e8]
mov dword [esp + 0x1c], ebx
call fcn.00439a20
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004cfacd
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x40cf62
push 2
push ebx
push eax
call fcn.004d1993
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.004d189b
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push ebx
push ecx
mov esi, eax
call fcn.004d1993
add esp, 0xc
push esi
call fcn.004d0ab4
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push esi
push ebp
mov edi, eax
push esi
push edi
call fcn.004d163b
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
call fcn.004d091b
add esp, 4
push 0x54ccfc
mov ebx, esi
lea eax, [esp + 0x5c]
call fcn.0044eee0
push edi
test al, al
je 0x40cf92
call fcn.004d0aa9
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x2e4]
call fcn.00439450
lea ecx, [esp + 0x58]
call fcn.0044e500
xor ebx, ebx
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439450
mov edx, dword [esp + 0x2c]
push 0x54ccd0
push edx
call dword [0x513124]
test eax, eax
jne 0x40cd00
jmp 0x40cfca
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x17], 0
call fcn.00439450
lea ecx, [esp + 0x58]
call fcn.0044e500
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439450
jmp 0x40cfca
call fcn.004d0aa9
add esp, 4
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x17], 0
call fcn.00439450
lea ecx, [esp + 0x58]
call fcn.0044e500
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439450
xor ebx, ebx
mov eax, dword [esp + 0x2c]
push eax
call dword [0x51312c]
cmp byte [esp + 0x17], 0
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
je 0x40d03d
xor esi, esi
cmp ebp, ebx
jle 0x40d03d
lea ebx, [ebx]
mov edx, dword [edi + esi*4]
cmp edx, ebx
je 0x40d02f
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d000
sub eax, ebx
sar eax, 1
je 0x40d02d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
call fcn.0040c700
test al, al
je 0x40d036
xor ebx, ebx
inc esi
cmp esi, ebp
jl 0x40cff0
jmp 0x40d03d
mov byte [esp + 0x17], 0
xor ebx, ebx
xor esi, esi
cmp ebp, ebx
jle 0x40d058
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x40d053
push eax
call fcn.004d0aa9
add esp, 4
inc esi
cmp esi, ebp
jl 0x40d043
mov esi, dword [esp + 0x54]
cmp edi, ebx
je 0x40d06c
push edi
call esi
add esp, 4
xor edi, edi
mov dword [esp + 0x3c], edi
cmp byte [esp + 0x17], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
jne 0x40d0a9
mov ecx, dword [esp + 0x20]
push 0x522fd0
call fcn.00402860
mov byte [esp + 0xc18], 0
cmp edi, ebx
je 0x40d09b
push edi
call esi
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00439450
jmp 0x40d0e6
mov byte [esp + 0xc18], 0
cmp edi, ebx
je 0x40d0bb
push edi
call esi
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00439450
mov al, 1
jmp 0x40d0e8
mov ecx, edi
call fcn.004386d0
push 0x522f08
push 0x523340
mov edx, eax
call fcn.00439ae0
add esp, 8
xor al, al
mov ecx, dword [esp + 0xc10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbf8]
xor ecx, esp
call fcn.004cd511
add esp, 0xc08
ret 0x10