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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x5e33bd
sub esp, 0xbc
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x5e297d
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0xcc]
cmp ebx, edx
jb 0x5e28c5
mov ebp, dword [esp + 0xc4]
jmp 0x5e2908
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
lea ecx, [0x6c0100]
mov dword [esp + 0x10], ecx
call fcn.00472770
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov ebx, ecx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x90], edx
mov dword [esp + 0xb8], ebp
mov dword [esp + 0x8c], ebx
add ecx, ebp
mov dword [esp], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00477ad0
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
add esp, 0xbc
ret
mov dword [esp], eax
call fcn.005e1b60
mov eax, dword [esp + 4]
test eax, eax
jg 0x5e29ad
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
xor ebp, ebp
xor esi, esi
xor edx, edx
jmp 0x5e2b05
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.005e27d0
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xa0], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xb8], ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x74], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x78], esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x90], edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x8c], ebx
test ecx, ecx
je 0x5e2a5e
lea eax, [0x8a1ce0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040b550
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x90]
test ecx, ecx
jne 0x5e2aaf
mov ecx, dword [esp + 0x70]
cmp ecx, 0x10
jge 0x5e2aaf
cmp ebp, 8
jle 0x5e2a77
mov ecx, 8
jmp 0x5e2a79
mov ecx, ebp
add eax, 0x24
cmp edx, eax
je 0x5e2afe
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00477ad0
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x90]
jmp 0x5e2afe
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.004a0990
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5e324e
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x90], edi
mov ecx, dword [esp + 0xc0]
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x5e33a4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebp
mov eax, dword [ecx + 0x18]
mov dword [esp + 0xa8], eax
lea edx, [0x8a2c40]
mov dword [esp], edx
mov dword [esp + 4], edi
call fcn.0040b8d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xb4], ecx
test eax, eax
je 0x5e3065
cmp eax, 1
je 0x5e2d91
cmp eax, 2
jne 0x5e33a4
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [eax + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 5
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x30], ebp
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.005dfce0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0xc]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x98], ebx
mov ebp, dword [esp + 0xa8]
mov dword [esp], ebp
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x60]
lea ebx, [edx + ecx]
test eax, eax
je 0x5e339f
mov dword [esp + 0x6c], ebx
mov ecx, dword [esp + 0xb8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov ecx, eax
mov eax, ebx
cmp ecx, 0xffffffff
je 0x5e2c93
cdq
idiv ecx
jmp 0x5e2c95
xor edx, edx
sub ecx, edx
mov dword [esp + 0x54], ecx
lea edx, [ebx + ecx]
mov dword [esp + 0xc], edx
call fcn.005e27d0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0xd4]
cmp edi, ecx
jge 0x5e2cca
mov eax, edi
jmp 0x5e2cce
mov eax, edi
mov edi, ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0xb8], edx
mov dword [esp + 0x80], ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xa4], edx
mov ebp, dword [esp + 0xd0]
cmp ebp, edx
je 0x5e2d34
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
call fcn.00477ad0
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
mov ebp, ebx
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, ecx
sub ecx, eax
lea eax, [edx + ebx]
mov ebx, dword [esp + 0x60]
cmp ebx, ecx
jl 0x5e2d50
mov ebx, ecx
mov ecx, dword [esp + 0x98]
cmp ecx, eax
je 0x5e2d84
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00477ad0
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x6c]
jmp 0x5e330c
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x5e2daf
mov eax, dword [esp + 0xc0]
lea edx, [eax + 0x24]
mov ebx, 8
mov ebp, 8
jmp 0x5e2dc5
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x5c], ebp
cmp word [eax + 0x10], 0x304
jne 0x5e2fb2
mov dword [esp + 0x94], edx
mov dword [esp + 0x58], ebx
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xd4]
lea eax, [edi + esi]
mov ebp, dword [esp + 0x8c]
cmp ebp, eax
jae 0x5e2e46
mov ecx, dword [esp + 0xb8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xd4]
mov dword [esp + 0xb8], eax
mov ebp, ebx
mov eax, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0xb8]
lea edx, [ecx + esi]
mov dword [esp], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.00477ad0
mov eax, dword [esp + 0x90]
inc eax
mov ecx, dword [esp + 0xb8]
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x8c]
cmp ebx, eax
jae 0x5e2ed1
mov byte [esp + 0x53], dl
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
movzx edx, byte [esp + 0x53]
mov ebx, ebp
mov esi, ecx
mov ecx, eax
mov eax, esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov byte [eax + ecx - 1], dl
mov byte [ecx], 0x17
mov edx, dword [esp + 0xb4]
mov ebp, dword [edx + 0x14]
mov esi, dword [esp + 0xa8]
mov dword [esp], esi
call ebp
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xd4]
lea eax, [ecx + eax + 1]
mov ecx, eax
sar eax, 8
mov edx, dword [esp + 0xb8]
mov byte [edx + 3], al
mov byte [edx + 4], cl
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 5
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
lea ebx, [ecx - 5]
mov ebp, dword [esp + 0x90]
add ebp, 0xfffffffb
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, 5
add ebx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], ecx
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x5e3288
mov esi, dword [eax + 0x24]
mov edi, dword [eax + 0x28]
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], edi
lea esi, [eax + 0x2c]
mov dword [esp + 0xb0], esi
mov edi, dword [esp + 0xb8]
mov esi, dword [edi]
movzx ebp, byte [edi + 4]
mov dword [eax + 0x34], esi
xchg ebp, ebx
mov byte [eax + 0x38], bl
xchg ebp, ebx
mov ecx, dword [ecx + 0x18]
mov ebp, dword [esp + 0xa8]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov ebp, dword [esp + 0x90]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x30], 0xd
call ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x5e3288
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [eax + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 5
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x30], ebp
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.005dfce0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xd4]
lea ebp, [ebx + ecx]
mov dword [esp + 0xc], ebp
call fcn.005e27d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xb4]
mov ebp, dword [ebx + 0xc]
mov esi, dword [esp + 0xd4]
mov edi, ecx
sub ecx, esi
mov dword [esp + 0x90], ecx
neg ecx
sar ecx, 0x1f
and ecx, esi
add ecx, eax
mov dword [esp + 0xb8], ecx
sub edx, esi
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
call ebp
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
call eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
jmp 0x5e3288
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
add esp, 0xbc
ret
mov dword [esp + 0xb8], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], edx
lea ebx, [ecx - 5]
mov ebp, ebx
sar ebx, 8
mov byte [eax + 3], bl
xchg ebp, ebx
mov byte [eax + 4], bl
xchg ebp, ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp], ebx
call fcn.005e1b00
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
add esp, 0xbc
ret
lea ecx, [eax - 1]
mov byte [edx + ebx], cl
inc ebx
cmp ebx, edi
jl 0x5e3305
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5e3357
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0x14]
mov ebx, dword [esp + 0xa8]
mov dword [esp], ebx
mov ebp, dword [esp + 0xa0]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
call edx
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
call eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
jmp 0x5e3288
call fcn.0043a740
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733d58]
mov dword [esp + 4], eax
call fcn.00470a40
nop
call fcn.00475ee0
jmp fcn.005e2870