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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6b5d12
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x10c]
mov edx, dword [eax + 0x110]
test ecx, ecx
je 0x6b5cdc
mov eax, dword [ecx + 0x18]
mov dword [esp], edx
call eax
movzx eax, word [esp + 4]
mov ecx, dword [esp + 0x54]
mov word [ecx + 0x100], ax
mov dword [esp], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 0x14], esi
call fcn.006ba230
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x6b5afd
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x60], esi
lea eax, [0x919d80]
mov dword [esp], eax
call fcn.0040ae10
mov edi, dword [esp + 4]
mov dword [edi + 4], 0xe
mov eax, dword [0xdd7ec0]
test eax, eax
jne 0x6b5af0
lea ecx, [0x989cf2]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 8], ecx
mov ecx, dword [0xdd7ec0]
test ecx, ecx
jne 0x6b5ada
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x74], eax
lea eax, [0xa4de40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
add esp, 0x50
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.00456fe0
mov edi, edx
jmp 0x6b5ab0
lea eax, [0x989cf2]
call fcn.00456fe0
jmp 0x6b5a98
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x10c]
mov ebx, dword [eax + 0x110]
mov edx, dword [edx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
call edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x48], ebp
test ecx, ecx
jne 0x6b5c44
mov eax, dword [esp + 0x44]
mov esi, ebx
sub ebx, eax
cmp ebx, 0xffff
jle 0x6b5bc1
mov eax, dword [0xdc2f34]
mov ecx, dword [0xdc2f30]
test ecx, ecx
je 0x6b5ba1
mov edx, dword [esp + 0x58]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x50
ret
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x50
ret
mov ecx, dword [esp + 0x38]
cmp ecx, edx
ja 0x6b5d0c
mov eax, edx
sub edx, ecx
mov edi, edx
neg edx
sar edx, 0x1f
and ecx, edx
add ecx, ebp
cmp edi, 2
jb 0x6b5c04
mov edi, ebx
shr bx, 8
mov byte [ecx], bl
xchg edi, eax
mov byte [ecx + 1], al
xchg edi, eax
mov ebx, dword [esp + 0x54]
mov word [ebx + 0x108], di
mov edx, eax
xor eax, eax
xor ecx, ecx
jmp 0x6b5b79
mov dword [esp + 0x40], ebx
lea eax, [0x8ebd00]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 2
call fcn.00440660
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
jmp 0x6b5be1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x919d80]
mov dword [esp], eax
call fcn.0040ae10
mov edi, dword [esp + 4]
mov dword [edi + 4], 7
mov eax, dword [0xdd7ec0]
test eax, eax
jne 0x6b5ccf
lea ecx, [0x984d53]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 8], ecx
mov ecx, dword [0xdd7ec0]
test ecx, ecx
jne 0x6b5cb9
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
lea eax, [0xa4de40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
add esp, 0x50
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.00456fe0
mov edi, edx
jmp 0x6b5c8f
lea eax, [0x984d53]
call fcn.00456fe0
jmp 0x6b5c77
mov eax, dword [0xdc2f24]
mov ecx, dword [0xdc2f20]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x50
ret
call fcn.004570a0
nop
call fcn.004557a0
jmp fcn.006b59c0