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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x4beb5a
sub esp, 0xb8
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc8]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004af820
mov eax, dword [esp + 8]
test eax, eax
jg 0x4be45a
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x4be3bc
xor ecx, ecx
jmp 0x4be3cf
movzx ecx, byte [ecx]
test cl, cl
je 0x4be3ca
mov ecx, 0xffffffff
jmp 0x4be3cf
mov ecx, 1
test ecx, ecx
je 0x4be42e
mov ecx, dword [esp + 0xbc]
test ecx, ecx
jne 0x4be3f0
mov ecx, dword [esp + 0xc8]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x4be760
mov dword [esp], ecx
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
call fcn.004bd770
mov byte [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
jmp 0x4be486
mov eax, dword [0x60c888]
mov ecx, dword [0x60c88c]
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
add esp, 0xb8
ret
mov eax, dword [0x60c888]
mov ecx, dword [0x60c88c]
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
add esp, 0xb8
ret
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xbc]
mov dword [esp], edx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004bbb30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4be970
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [0x60c3f8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004af820
mov eax, dword [esp + 8]
test eax, eax
jne 0x4be4f3
mov eax, dword [0x60c3f4]
jmp 0x4be4f7
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx]
lea ebx, [esp + 0xa8]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004b15c0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4be486
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 4]
mov byte [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea edx, [esp + 0x98]
mov dword [esp], edx
mov edx, ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.004aed70
mov eax, dword [esp + 0xc]
mov byte [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx]
lea ebx, [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004af9c0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0x78]
cmp ecx, edx
je 0x4be719
mov dword [esp + 0x44], eax
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
test ebx, ebx
jg 0x4be624
mov esi, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov ebx, esi
jmp 0x4be6c0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebp
cmp ebx, 1
jne 0x4be67c
lea eax, [0x523880]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004473b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0x78]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, 1
mov edi, eax
mov eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
jmp 0x4be6c0
lea eax, [0x523880]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
call fcn.004473b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0x78]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, esi
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp ebx, esi
jg 0x4be6c6
mov esi, ebx
cmp edi, ebp
je 0x4be6fc
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], ebx
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0045f780
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0x78]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x7c], edi
movzx ecx, byte [ecx]
mov byte [esp + 0x78], cl
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004af2a0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004af620
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x78]
lea edx, [esp + 0xa8]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], edx
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4be934
lea eax, [0x527700]
mov dword [esp], eax
call fcn.0040b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x10]
mov ebp, dword [ecx + 0xc]
test ebx, ebx
jbe 0x4beb50
mov ecx, dword [ebp]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.004af9c0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x10]
mov ebp, dword [ecx + 0xc]
cmp ebx, 1
jbe 0x4beb44
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.004af9c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004af060
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4be848
xor ecx, ecx
jmp 0x4be85b
movzx edx, byte [eax]
test dl, dl
je 0x4be856
mov ecx, 0xffffffff
jmp 0x4be85b
mov ecx, 1
test ecx, ecx
jge 0x4be88a
mov edx, dword [esp + 0xc4]
mov ecx, dword [edx + 0x10]
mov ebx, dword [edx + 0xc]
test ecx, ecx
jbe 0x4beb3d
mov ecx, dword [ebx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004aee20
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x20]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004af2a0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test ecx, ecx
jbe 0x4beb36
mov eax, dword [edx]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004af620
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, 1
jbe 0x4beb2c
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004af2a0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004aee20
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
test ecx, ecx
je 0x4be9f1
mov dword [esp + 0x2c], ecx
xor ebx, ebx
jmp 0x4bea07
lea eax, [0x527700]
mov dword [esp], eax
call fcn.0040b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004af9c0
mov eax, dword [esp + 0x10]
jmp 0x4be990
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4be9cd
mov dword [esp + 0x60], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004af2a0
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004af620
mov eax, dword [esp + 0x60]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xd4], eax
add esp, 0xb8
ret
mov eax, dword [esp + 0x40]
jmp 0x4be990
mov ebp, dword [esp + 0x5c]
lea edx, [ebp + 0xc]
mov ebx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x5c], edx
mov ebp, dword [edx + 4]
mov dword [esp + 0x58], ebp
mov esi, dword [edx + 8]
mov dword [esp + 0x54], esi
mov edi, dword [edx]
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
lea ebp, [ebx + 2]
cmp edx, ebp
jbe 0x4beb23
mov dword [esp + 0x28], ebx
mov eax, dword [esi + ebx*4 + 8]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
call fcn.004af9c0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.004af060
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.004af2a0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.004af620
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4beaab
xor ecx, ecx
jmp 0x4beabe
movzx ecx, byte [eax]
test cl, cl
je 0x4beab9
mov ecx, 0xffffffff
jmp 0x4beabe
mov ecx, 1
test ecx, ecx
jge 0x4beada
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.004aee20
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.004af2a0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004aee20
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x4be9f7
mov eax, dword [esp + 0xc4]
jmp 0x4be9f1
mov eax, ebp
mov ecx, edx
call fcn.0045eef0
mov eax, 1
call fcn.0045eef0
xor eax, eax
call fcn.0045eef0
xor eax, eax
call fcn.0045eef0
mov eax, 1
mov ecx, ebx
call fcn.0045eef0
xor eax, eax
mov ecx, ebx
call fcn.0045eef0
nop
call fcn.0045daa0
jmp fcn.004be360