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

Disassembly:
push 0xffffffffffffffff
push 0x465bfb
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xd4], ebx
mov ebp, 7
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0xd4], 3
mov eax, dword [esp + 0xf0]
push 0x469acc
xor edi, edi
lea ecx, [esp + 0xe0]
call fcn.00401de0
test eax, eax
jne 0x40bfae
mov esi, 8
cmp dword [esp + 0xc0], esi
jb 0x40bf20
mov eax, dword [esp + 0xac]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40bf4c
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40bf78
mov edx, dword [esp + 0x90]
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x40bfa7
mov eax, dword [esp + 0xe0]
push eax
call fcn.0044ec2b
add esp, 4
xor eax, eax
jmp 0x40c888
cmp dword [esp + 0xf0], 2
jae 0x40c06c
mov esi, 8
cmp dword [esp + 0xc0], esi
jb 0x40bfda
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40c006
mov edx, dword [esp + 0x74]
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40c032
mov eax, dword [esp + 0x90]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x40bfa7
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0044ec2b
add esp, 4
xor eax, eax
jmp 0x40c888
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x104]
mov word [ecx + 4], bx
call fcn.00401110
lea edi, [esp + 0x40]
call fcn.0040bd90
add esp, 0x20
mov ecx, eax
mov byte [esp + 0xd4], 4
mov eax, dword [ecx + 0x14]
push 0x469ad0
mov edi, 1
call fcn.00401de0
test eax, eax
mov esi, 8
setne byte [esp + 0x1f]
mov byte [esp + 0xd4], 3
cmp dword [esp + 0x38], esi
jb 0x40c0df
mov edx, dword [esp + 0x24]
push edx
call fcn.0044ec2b
add esp, 4
cmp byte [esp + 0x1f], bl
je 0x40c0f8
push 1
push 0x469ad0
lea ecx, [esp + 0xe4]
call fcn.00402190
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
lea edi, [esp + 0xfc]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
mov eax, edi
mov word [ecx + 4], bx
call fcn.00401110
call fcn.0040b100
add esp, 0x1c
lea edi, [esp + 0x20]
call fcn.0040c8b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 5
call fcn.00401110
mov byte [esp + 0xd4], 3
cmp dword [esp + 0x38], esi
jb 0x40c15c
mov eax, dword [esp + 0x24]
push eax
call fcn.0044ec2b
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x94]
mov word [ecx + 4], bx
call fcn.00401110
lea esi, [esp + 0x3c]
call fcn.0040bd00
add esp, 0x1c
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 6
call fcn.00401110
mov edi, 8
mov byte [esp + 0xd4], 3
cmp dword [esp + 0x38], edi
jb 0x40c1be
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044ec2b
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x100]
mov word [ecx + 4], bx
call fcn.00401110
lea edx, [esp + 0x3c]
push edx
call fcn.0040cab0
add esp, 0x20
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0xdc], 7
call fcn.00401110
mov byte [esp + 0xd4], 3
cmp dword [esp + 0x38], edi
jb 0x40c21f
mov eax, dword [esp + 0x24]
push eax
call fcn.0044ec2b
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xb0]
mov word [ecx + 4], bx
call fcn.00401110
lea esi, [esp + 0x3c]
call fcn.0040bd00
add esp, 0x1c
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0xdc], 8
call fcn.00401110
mov byte [esp + 0xd4], 3
cmp dword [esp + 0x38], edi
jb 0x40c27f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044ec2b
add esp, 4
push 1
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xb8]
lea esi, [esp + 0x44]
mov word [ecx + 4], bx
call fcn.00401110
sub esp, 0x1c
mov byte [esp + 0x114], 9
mov ecx, esp
mov dword [esp + 0x9c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xb8]
mov word [ecx + 4], bx
call fcn.00401110
mov ecx, esi
mov byte [esp + 0x114], 3
call fcn.0040ccc0
add esp, 0x40
cmp eax, ebx
jne 0x40c39a
cmp dword [esp + 0xc0], edi
jb 0x40c308
mov edx, dword [esp + 0xac]
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40c334
mov eax, dword [esp + 0x74]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40c360
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xf4], edi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x40bfa7
mov edx, dword [esp + 0xe0]
push edx
call fcn.0044ec2b
add esp, 4
xor eax, eax
jmp 0x40c888
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov edx, 0x469ad0
lea eax, [esp + 0x20]
mov byte [esp + 0xd4], 0xa
call fcn.00401da0
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xb
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c3ed
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac7c
lea eax, [esp + 0x20]
call fcn.00401da0
lea edx, [esp + 0x20]
push edx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xc
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c42c
mov eax, dword [esp + 0x24]
push eax
call fcn.0044ec2b
add esp, 4
mov edx, 0x46cab8
lea eax, [esp + 0x20]
call fcn.00401da0
lea ecx, [esp + 0x20]
push ecx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xd
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c46b
mov edx, dword [esp + 0x24]
push edx
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac90
lea eax, [esp + 0x20]
call fcn.00401da0
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xe
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c4aa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac94
lea eax, [esp + 0x20]
call fcn.00401da0
lea edx, [esp + 0x20]
push edx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xf
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c4e9
mov eax, dword [esp + 0x24]
push eax
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac68
lea eax, [esp + 0x20]
call fcn.00401da0
lea ecx, [esp + 0x20]
push ecx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0x10
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c528
mov edx, dword [esp + 0x24]
push edx
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac98
lea eax, [esp + 0x20]
call fcn.00401da0
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0x11
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c567
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044ec2b
add esp, 4
mov edx, 0x46ac9c
lea eax, [esp + 0x20]
call fcn.00401da0
lea edx, [esp + 0x20]
push edx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0x12
call fcn.00401f70
mov byte [esp + 0xd4], 0xa
cmp dword [esp + 0x38], edi
jb 0x40c5a6
mov eax, dword [esp + 0x24]
push eax
call fcn.0044ec2b
add esp, 4
mov edx, 0x46abf8
lea eax, [esp + 0x20]
call fcn.00401da0
lea ecx, [esp + 0x20]
push ecx
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0x13
call fcn.00401f70
cmp dword [esp + 0x38], edi
jb 0x40c5dd
mov edx, dword [esp + 0x24]
push edx
call fcn.0044ec2b
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x4c]
push eax
sub esp, 0x1c
mov byte [esp + 0xf4], 0x15
mov edx, 0x469ad0
mov eax, esp
mov dword [esp + 0x7c], esp
call fcn.00401da0
sub esp, 0x1c
mov byte [esp + 0x110], 0x16
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x120]
mov word [ecx + 4], bx
call fcn.00401110
mov byte [esp + 0x110], 0x15
call fcn.0040afa0
add esp, 0x3c
mov ebp, 1
mov dword [esp + 0x18], 0x1c
lea esp, [esp]
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x40c7aa
mov ecx, dword [esp + 0x54]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x40c7aa
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + esi + 0x14]
add ecx, esi
push 0x469acc
xor edi, edi
call fcn.00401de0
test eax, eax
je 0x40c712
mov esi, dword [esp + 0x50]
cmp esi, ebx
lea edx, [esp + 0x60]
push edx
lea edi, [esp + 0x40]
je 0x40c6d5
mov ecx, dword [esp + 0x58]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40c6de
call fcn.0044f3b1
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
add eax, esi
push ebx
mov word [ecx + 4], bx
call fcn.00401110
mov ecx, edi
call fcn.0040d000
add esp, 0x20
cmp eax, 1
je 0x40c71f
add ebp, 1
add dword [esp + 0x18], 0x1c
jmp 0x40c660
lea esi, [esp + 0x4c]
call fcn.00401e80
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40c739
push eax
call fcn.0044ec2b
add esp, 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.00401e80
cmp dword [esp + 0xc0], 8
jb 0x40c768
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0044ec2b
add esp, 4
lea esi, [esp + 0x70]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
call fcn.00401010
lea esi, [esp + 0x8c]
call fcn.00401010
lea esi, [esp + 0xdc]
call fcn.00401010
xor eax, eax
jmp 0x40c888
lea esi, [esp + 0x4c]
call fcn.00401e80
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40c7c4
push eax
call fcn.0044ec2b
add esp, 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.00401e80
mov esi, 8
cmp dword [esp + 0xc0], esi
jb 0x40c7f7
mov edx, dword [esp + 0xac]
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x88], esi
mov edi, 7
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40c828
mov eax, dword [esp + 0x74]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40c854
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x40c883
mov edx, dword [esp + 0xe0]
push edx
call fcn.0044ec2b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0044eeec
add esp, 0xc4
ret