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

Disassembly:
mov ecx, dword [0x7f7460]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb8]
cmp eax, dword [ecx + 8]
jbe 0x5be409
sub esp, 0x138
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x5be0b7
mov edx, dword [eax + 0x13c]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x5be0af
movzx edx, byte [ecx + 0xf]
nop
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x5be0a6
or edx, 0x80
mov ebx, dword [esp + 0x134]
jmp 0x5be0bd
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x5be0bd
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x124], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x13
call fcn.00497d30
mov eax, dword [esp + 0x18]
and eax, 0x1f
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
cmp eax, 9
ja 0x5be11c
cmp eax, 7
jne 0x5be104
mov eax, dword [ecx]
jmp 0x5be139
cmp eax, 8
jne 0x5be10e
movzx eax, byte [ecx]
jmp 0x5be139
cmp eax, 9
jne 0x5be3ce
movzx eax, word [ecx]
jmp 0x5be139
cmp eax, 0xa
jne 0x5be125
mov eax, dword [ecx]
jmp 0x5be139
cmp eax, 0xb
jne 0x5be12e
mov eax, dword [ecx]
jmp 0x5be139
cmp eax, 0xc
jne 0x5be3ce
mov eax, dword [ecx]
test eax, eax
jbe 0x5be20a
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x124]
mov dword [esp], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x12
call fcn.00497d30
mov eax, dword [esp + 0x18]
and eax, 0x1f
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
cmp eax, 9
ja 0x5be1a4
cmp eax, 7
jne 0x5be18c
mov ecx, dword [ecx]
jmp 0x5be1c1
cmp eax, 8
jne 0x5be196
movzx ecx, byte [ecx]
jmp 0x5be1c1
cmp eax, 9
jne 0x5be394
movzx ecx, word [ecx]
jmp 0x5be1c1
cmp eax, 0xa
jne 0x5be1ad
mov ecx, dword [ecx]
jmp 0x5be1c1
cmp eax, 0xb
jne 0x5be1b6
mov ecx, dword [ecx]
jmp 0x5be1c1
cmp eax, 0xc
jne 0x5be394
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x44]
xor eax, eax
call fcn.00467518
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x78]
lea ebx, [0x615320]
cmp edx, ebx
jne 0x5be37e
mov esi, dword [ecx + 0x7c]
lea edi, [esp + 0x44]
call fcn.00467830
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x5be241
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], ecx
mov dword [esp + 0x148], eax
add esp, 0x138
ret
mov dword [ebp + eax*4 - 4], edx
mov esi, dword [esp + 0x34]
inc esi
mov ecx, esi
mov edx, ebx
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
cmp ecx, esi
jae 0x5be360
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x12c], ebx
mov edx, dword [esp + 0x13c]
mov dword [esp], edx
lea ebx, [eax + ecx*4]
mov dword [esp + 4], ebx
call fcn.005b9930
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5be298
mov eax, dword [0x7c3d28]
xor edx, edx
jmp 0x5be2cb
mov edx, dword [ecx + 0x28c]
cmp edx, eax
jb 0x5be377
mov ebx, dword [ecx + 0x290]
sub edx, eax
sub ebx, eax
neg ebx
sar ebx, 0x1f
and eax, ebx
cmp edx, 3
jbe 0x5be36b
mov edx, dword [ecx + 0x288]
mov edx, dword [edx + eax]
xor eax, eax
test eax, eax
jne 0x5be335
mov eax, dword [esp + 0x38]
inc eax
mov ebx, dword [esp + 0x3c]
cmp ebx, eax
jb 0x5be2e8
mov ebp, dword [esp + 0x12c]
jmp 0x5be22c
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x12c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5eed60]
mov dword [esp + 0x10], eax
call fcn.0044d830
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x13c]
mov ebp, ebx
mov ebx, edx
mov edx, dword [esp + 0x2c]
jmp 0x5be22c
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x148], eax
add esp, 0x138
ret
mov eax, edx
mov ecx, ebp
mov edx, ebx
jmp 0x5be210
mov eax, 3
mov ecx, edx
call fcn.00467310
mov ecx, edx
call fcn.00467380
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x5efca0]
mov dword [esp + 8], eax
call fcn.00409960
lea eax, [0x5fd2c0]
mov dword [esp], eax
call fcn.0040c490
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x620706]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [0x5f5020]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00437cb0
lea eax, [0x5fd2c0]
mov dword [esp], eax
call fcn.0040c490
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x620706]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [0x5f5020]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00437cb0
nop
call fcn.00465ea0
jmp fcn.005be040