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

Disassembly:
push 0xffffffffffffffff
push 0x467c0b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c421
mov edi, dword [esp + 0xcc]
mov ebp, dword [edi + 0x10]
cmp dword [edi + 0xc], ebp
jbe 0x40bed7
call fcn.004507b0
mov esi, dword [edi + 0xc]
mov ebx, dword [edi]
cmp esi, dword [edi + 0x10]
jbe 0x40bee6
call fcn.004507b0
mov eax, dword [edi]
push ebp
push ebx
push esi
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.0040b4c0
lea ecx, [esp + 0x80]
call fcn.004071e0
xor ebp, ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0xbc], ebp
call fcn.004071e0
lea ecx, [esp + 0x68]
mov byte [esp + 0xbc], 1
call fcn.004071e0
push 2
push 0x46e0a4
lea ecx, [esp + 0x48]
mov byte [esp + 0xc4], 2
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
call fcn.004035a0
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
mov byte [esp + 0xc8], 3
call fcn.0040be80
add esp, 0xc
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0xbc], 2
jb 0x40bf91
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044fc16
add esp, 4
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
cmp esi, eax
jbe 0x40bfaf
call fcn.004507b0
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov edi, edi
mov esi, eax
cmp dword [esp + 0x8c], eax
jbe 0x40bfd0
call fcn.004507b0
cmp ebx, ebp
je 0x40bfdd
cmp ebx, dword [esp + 0x80]
je 0x40bfe2
call fcn.004507b0
cmp dword [esp + 0x18], esi
je 0x40c143
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, eax
cmp edi, eax
jbe 0x40c007
call fcn.004507b0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp edi, eax
jbe 0x40c014
call fcn.004507b0
mov edx, dword [esp + 0x20]
push ebp
push esi
push edi
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040b4c0
push 1
push 0x46e0c8
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.004035a0
mov byte [esp + 0xbc], 4
test ebx, ebx
jne 0x40c134
call fcn.004507b0
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx + 0x10]
jb 0x40c072
call fcn.004507b0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push esi
call fcn.0040be80
add esp, 0xc
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0xbc], 2
jb 0x40c0a1
mov eax, dword [esp + 0x44]
push eax
call fcn.0044fc16
add esp, 4
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x74], eax
jbe 0x40c0b4
call fcn.004507b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x68]
mov ebx, ecx
cmp eax, ecx
jbe 0x40c0d3
call fcn.004507b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, eax
cmp eax, ecx
jbe 0x40c0e2
call fcn.004507b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
push edx
push eax
push ebp
lea ecx, [esp + 0x84]
call fcn.0040b700
cmp dword [esp + 0x14], 0
jne 0x40c13b
call fcn.004507b0
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x40c11d
call fcn.004507b0
add dword [esp + 0x18], 0x1c
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
jmp 0x40bfc0
mov ebx, dword [ebx]
jmp 0x40c064
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x40c10f
mov esi, dword [esp + 0x74]
cmp esi, dword [esp + 0x78]
jbe 0x40c152
call fcn.004507b0
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov edi, edi
mov esi, dword [esp + 0x78]
cmp dword [esp + 0x74], esi
jbe 0x40c16f
call fcn.004507b0
cmp ebx, ebp
je 0x40c179
cmp ebx, dword [esp + 0x68]
je 0x40c17e
call fcn.004507b0
cmp dword [esp + 0x18], esi
je 0x40c2e4
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, eax
cmp edi, eax
jbe 0x40c1a3
call fcn.004507b0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp edi, eax
jbe 0x40c1b0
call fcn.004507b0
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040b4c0
push 1
push 0x46e0c4
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.004035a0
mov byte [esp + 0xbc], 5
test ebx, ebx
jne 0x40c2d5
call fcn.004507b0
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x10]
jb 0x40c210
call fcn.004507b0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.0040be80
add esp, 0xc
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0xbc], 2
jb 0x40c23f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044fc16
add esp, 4
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0xc], eax
jbe 0x40c257
call fcn.004507b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xcc]
mov ebp, dword [edx]
mov ebx, eax
cmp ecx, eax
jbe 0x40c27b
call fcn.004507b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, ecx
cmp ecx, eax
jbe 0x40c28a
call fcn.004507b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push esi
push edi
push ecx
mov ecx, dword [esp + 0xe0]
push edx
push ebp
call fcn.0040b700
cmp dword [esp + 0x14], 0
jne 0x40c2dc
call fcn.004507b0
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x40c2c5
call fcn.004507b0
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x14]
xor ebp, ebp
jmp 0x40c160
mov eax, dword [ebx]
jmp 0x40c202
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
jmp 0x40c2b7
mov esi, dword [esp + 0x74]
cmp esi, ebp
je 0x40c32c
mov edi, dword [esp + 0x78]
cmp esi, edi
je 0x40c31f
add esi, 0x18
cmp dword [esi], 0x10
jb 0x40c308
mov edx, dword [esi - 0x14]
push edx
call fcn.0044fc16
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebp
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40c2f7
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0044fc16
add esp, 4
mov edx, dword [esp + 0x68]
push edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call fcn.0044fc16
mov esi, dword [esp + 0x30]
add esp, 4
cmp esi, ebp
je 0x40c395
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x40c38c
add esi, 0x18
jmp 0x40c360
cmp dword [esi], 0x10
jb 0x40c371
mov eax, dword [esi - 0x14]
push eax
call fcn.0044fc16
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebp
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40c360
mov esi, dword [esp + 0x2c]
push esi
call fcn.0044fc16
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.0044fc16
mov esi, dword [esp + 0x90]
add esp, 4
cmp esi, ebp
je 0x40c3ff
mov edi, dword [esp + 0x90]
cmp esi, edi
je 0x40c3f6
add esi, 0x18
cmp dword [esi], 0x10
jb 0x40c3d8
mov eax, dword [esi - 0x14]
push eax
call fcn.0044fc16
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebp
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40c3c7
mov esi, dword [esp + 0x8c]
push esi
call fcn.0044fc16
add esp, 4
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
push edx
jmp 0x40c5a6
mov eax, dword [esp + 0xc4]
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x40c437
mov esi, dword [eax + 4]
jmp 0x40c43a
lea esi, [eax + 4]
mov dword [esp + 0x1c], esi
cmp dword [ecx + 0x18], edx
jb 0x40c448
mov ecx, dword [ecx + 4]
jmp 0x40c44b
add ecx, 4
mov ebp, dword [esp + 0xcc]
mov edi, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
xor esi, esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
cmp dword [ebp + 0xc], edi
jbe 0x40c470
call fcn.004507b0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x5c], eax
cmp ebx, dword [ebp + 0x10]
jbe 0x40c484
call fcn.004507b0
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebp]
push edi
push ecx
push ebx
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, ebp
call fcn.0040b4c0
cmp dword [esp + 0x3c], 0
jbe 0x40c5ae
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
lea eax, [ebx + esi]
mov dword [esp + 0x38], eax
cmp eax, ecx
ja 0x40c5c8
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
add edi, esi
mov eax, ebx
cmp ebx, 4
jb 0x40c4e6
mov ebx, dword [edi]
cmp ebx, dword [ecx]
jne 0x40c50a
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x40c4d2
test eax, eax
je 0x40c50d
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x40c50a
cmp eax, 1
jbe 0x40c50d
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x40c50a
cmp eax, 2
jbe 0x40c50d
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
je 0x40c50d
inc esi
jmp 0x40c55a
sub esi, edx
push esi
push edx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0xd0]
call fcn.00403fe0
push eax
mov ecx, ebp
mov dword [esp + 0xc0], 7
call fcn.0040bdd0
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xbc], 0xffffffff
jb 0x40c554
mov edx, dword [esp + 0x44]
push edx
call fcn.0044fc16
add esp, 4
mov edx, dword [esp + 0x38]
mov esi, edx
mov ecx, dword [esp + 0x3c]
cmp esi, ecx
jb 0x40c4ae
cmp edx, esi
jae 0x40c5ae
mov ecx, dword [esp + 0xc4]
push 0xffffffffffffffff
push edx
lea edx, [esp + 0xa0]
push edx
call fcn.00403fe0
push eax
mov ecx, ebp
mov dword [esp + 0xc0], 8
call fcn.0040bdd0
cmp dword [esp + 0xb0], 0x10
jb 0x40c5ae
mov eax, dword [esp + 0x9c]
push eax
call fcn.0044fc16
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov ecx, dword [esp + 0xc4]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00403fe0
push eax
mov ecx, ebp
mov dword [esp + 0xc0], 6
call fcn.0040bdd0
cmp dword [esp + 0x58], 0x10
jb 0x40c5ae
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x40c5a6