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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5ec4c5
sub esp, 0xa8
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x2c]
movzx edx, byte [ecx + 0x61]
test dl, dl
jne 0x5eb6aa
mov ecx, dword [ecx + 0x84]
test ecx, ecx
jne 0x5eb714
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov byte [esp + 0x33], 1
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x108]
mov edx, dword [eax + 0x10c]
mov ebx, dword [eax + 0x110]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
lea ecx, [esp + 0x33]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.004d62e0
movzx eax, byte [esp + 0x18]
xor eax, 1
mov ecx, dword [esp + 0xb0]
mov byte [ecx + 0x64], al
mov eax, dword [ecx + 0xb0]
cmp word [eax], 0x304
jne 0x5eb7c9
lea eax, [0x6bb160]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov byte [eax], 1
mov ecx, dword [esp + 0xb0]
mov dword [ecx + 0xdc], 1
mov dword [ecx + 0xe0], 1
mov edx, dword [0x8c88d8]
test edx, edx
je 0x5eb7c3
call fcn.004772f0
mov dword [edi], eax
mov edx, dword [ecx + 0xd8]
mov dword [edi + 4], edx
mov dword [ecx + 0xd8], eax
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x5eb91a
mov dword [esp], eax
call fcn.005f0090
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
je 0x5eb8b0
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 0x84]
mov ecx, dword [ecx + 0x88]
mov edx, dword [edx + 0xc]
mov dword [esp], ecx
call edx
movzx eax, byte [esp + 0x10]
test al, al
je 0x5eb846
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5eb846
mov eax, dword [eax]
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0xb0]
mov ebx, dword [ecx + 0xb4]
xor ebp, ebp
jmp 0x5eb985
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
inc ebp
cmp ebp, ebx
jge 0x5ebee2
movzx esi, word [edx + ebp*2]
cmp word [eax + 0xe], si
jne 0x5eb984
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x2c]
mov dword [esp], ecx
call fcn.005e0540
lea edi, [esp + 0x94]
lea esi, [esp + 4]
call fcn.004778be
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x2c]
mov ecx, dword [ecx]
test byte [ecx], al
lea esi, [ecx + 0x16c]
lea edi, [esp + 0x80]
call fcn.004778be
lea edi, [esp]
lea esi, [esp + 0x94]
call fcn.004778be
lea edi, [esp + 0x14]
lea esi, [esp + 0x80]
call fcn.004778be
call fcn.004b5b10
movzx eax, byte [esp + 0x28]
test al, al
jne 0x5ebe42
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x2c]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x5eba5a
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x60]
test ebx, ebx
je 0x5ebdd8
mov eax, dword [edx + 0x2c]
mov eax, dword [eax]
mov ebx, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.005cb410
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5ebd6e
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x74]
cmp word [ecx + 0xe], 0x304
je 0x5ebba9
mov eax, dword [esp + 0xb0]
mov edx, dword [eax + 0x28]
mov ebx, dword [eax + 0x2c]
mov ebp, dword [eax + 0x30]
movzx esi, word [ecx + 0x12]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov word [esp + 0xc], si
call fcn.005dfef0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5ebb3f
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x7c]
mov ebp, dword [esp + 0xb0]
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x70], edx
mov ecx, dword [0x8c88d8]
test ecx, ecx
je 0x5ebad6
call fcn.004772f0
mov dword [edi], ebx
mov ecx, dword [ebp + 0x68]
mov dword [edi + 4], ecx
mov dword [ebp + 0x68], ebx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov ecx, dword [eax + 0x2c]
mov dword [esp], ecx
call fcn.005e0540
lea edi, [esp + 0x94]
lea esi, [esp + 4]
call fcn.004778be
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004b7c10
lea edi, [esp + 0x80]
lea esi, [esp + 0x10]
call fcn.004778be
lea edi, [esp]
lea esi, [esp + 0x94]
call fcn.004778be
lea edi, [esp + 0x14]
lea esi, [esp + 0x80]
call fcn.004778be
call fcn.004b5b10
movzx eax, byte [esp + 0x28]
test al, al
jne 0x5ebcce
mov eax, dword [esp + 0x74]
movzx ecx, word [eax + 0x12]
mov word [esp], cx
call fcn.005e0000
mov eax, dword [esp + 4]
test eax, eax
je 0x5ebc64
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x70], edx
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0x50], ebx
xor ebp, ebp
jmp 0x5ebf64
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov esi, dword [esp + 0x4c]
lea ebp, [esi + 1]
mov eax, ecx
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x50]
cmp ebp, ebx
jge 0x5ec02d
mov dword [esp + 0x4c], ebp
movzx eax, word [edx + ebp*2]
mov word [esp], ax
call fcn.005e0000
mov eax, dword [esp + 4]
test eax, eax
je 0x5ebf93
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x58]
cmp dword [ecx + 0xc], eax
jne 0x5ebf4c
jmp 0x5ebf99
mov ecx, dword [esp + 0x58]
jmp 0x5ebf4c
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x5ec097
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.006025c0
mov eax, dword [esp + 0x74]
movzx ecx, byte [eax + 0xc]
test cl, cl
jne 0x5ebfcb
xor ecx, ecx
jmp 0x5ec003
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
mov ebp, dword [ecx + 0x30]
movzx esi, word [eax + 0x12]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov word [esp + 0xc], si
call fcn.005dffa0
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov ecx, eax
mov eax, dword [esp + 0x74]
test cl, cl
je 0x5ec453
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0xa0]
mov dword [esp + 0x6c], edx
mov ebx, dword [ecx + 0xa4]
mov dword [esp + 0x50], ebx
xor ebp, ebp
jmp 0x5ec460
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call fcn.005e0540
lea edi, [esp + 0x80]
lea esi, [esp + 4]
call fcn.004778be
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004b7c10
lea edi, [esp + 0x94]
lea esi, [esp + 0x10]
call fcn.004778be
lea edi, [esp]
lea esi, [esp + 0x80]
call fcn.004778be
lea edi, [esp + 0x14]
lea esi, [esp + 0x94]
call fcn.004778be
call fcn.004b6cc0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x80]
mov dword [esp + 0x38], ebx
mov ebp, dword [edx + 0x84]
mov dword [esp + 0x3c], ebp
mov esi, dword [edx + 0x7c]
mov dword [esp + 0x54], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
call fcn.004684d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
add eax, dword [ecx + 0x78]
mov dword [esp + 0x34], eax
lea edx, [0x6be180]
mov dword [esp], edx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x5ec19c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
jmp 0x5ec1ba
call fcn.00477300
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx + 0xe4]
mov dword [edi + 8], ebx
mov dword [eax], ecx
mov dword [edx + 0xe8], 1
mov dword [edx + 0xec], 1
mov dword [edx + 0xe4], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
call fcn.0052eac0
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
lea ecx, [0x6c0100]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004726e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
lea ecx, [0x6be0c0]
mov dword [esp], ecx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x5ec23a
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0xb0]
jmp 0x5ec258
call fcn.00477300
mov ecx, dword [esp + 0x68]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx + 0xf0]
mov dword [edi + 8], ebx
mov dword [eax], ecx
mov dword [edx + 0xf4], 1
mov dword [edx + 0xf8], 1
mov dword [edx + 0xf0], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov esi, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.005ffa00
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
lea ebp, [0x703aa0]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.005ff900
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x58]
mov ebp, dword [ebx + 0xc]
mov dword [esp], ebp
call fcn.0052eb20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [0x604c80]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x18], eax
call fcn.005f01f0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5ec3e9
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
add esp, 0xa8
ret
mov eax, dword [esp + 0x74]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
jmp 0x5ec097
inc ebp
cmp ebp, ebx
jge 0x5ec453
lea esi, [edx + ebp*8]
mov edi, dword [esi + 4]
cmp dword [eax + 0x6c], edi
jne 0x5ec45f
mov dword [esp + 0x4c], ebp
mov ecx, dword [esi]
mov edx, dword [eax + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.004040c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5ec4aa
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
jmp 0x5ec45f
mov eax, dword [esp + 0xb0]
mov byte [eax + 0xd4], 1
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xb0]
jmp 0x5ec453
call fcn.00475ee0
jmp fcn.005eb670