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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x65835e6a
sub esp, 0x58
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
cmp dword [edx + 0x50], ecx
jne 0x65835e10
mov ebx, dword [edx + 0x6c]
test ebx, ebx
jne 0x65835db7
mov dword [esp + 0x20], ecx
mov ebx, dword [edx + 0x78]
test ebx, ebx
jne 0x65835cfc
mov edx, dword [edx + 0x7c]
test edx, edx
jne 0x65835ca3
lea edi, [esp + 0x3c]
xor eax, eax
call fcn.6585fce9
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x48], edx
lea edi, [ecx + 0x10]
mov dword [esp + 0x38], edi
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x65835857
lea eax, [esp + 0x3c]
mov dword [ecx + 0x10], eax
jmp 0x65835860
lea eax, [esp + 0x3c]
call fcn.6585fb10
lea eax, [0x65a3447c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65802980
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.658350f0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x65835b0c
lea edi, [ecx + 0x14]
movzx ebx, byte [edx]
test bl, bl
je 0x65835930
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x658358ba
mov byte [ebx + 0x19], 1
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x658358cd
mov dword [edx + 0x10], 0
jmp 0x658358dd
lea ebx, [edx + 0x10]
xor eax, eax
mov ebp, edi
mov edi, ebx
call fcn.6585fb10
mov edi, ebp
movzx ebx, byte [edx + 2]
test bl, bl
jne 0x65835930
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x658358f8
mov dword [edx + 0xc], 0
jmp 0x65835908
lea ebx, [edx + 0xc]
xor eax, eax
mov ebp, edi
mov edi, ebx
call fcn.6585fb10
mov edi, ebp
mov ebx, dword [0x65a345b0]
mov eax, dword [edx + 0x14]
test ebx, ebx
jne 0x6583591a
mov dword [ecx + 0x14], eax
jmp 0x6583591f
call fcn.6585fb10
mov dword [esp], edx
call fcn.65834900
mov edx, dword [esp + 0x20]
jmp 0x65835892
mov byte [edx], 1
lea ebx, [edx + 0x10]
mov ebp, dword [0x65a345b0]
test ebp, ebp
jne 0x65835949
lea eax, [esp + 0x3c]
mov dword [edx + 0x10], eax
jmp 0x65835958
lea eax, [esp + 0x3c]
mov ebp, edi
mov edi, ebx
call fcn.6585fb10
mov edi, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ebx
movzx ebp, byte [edx + 2]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x658359c3
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.65835440
movzx eax, byte [esp + 8]
test al, al
je 0x658359bd
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x10]
movzx edx, byte [edx + 0x18]
test dl, dl
jne 0x658359e3
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.658350f0
movzx eax, byte [esp + 0xe]
mov ecx, dword [esp + 0x28]
jmp 0x658359e3
mov ecx, dword [esp + 0x28]
jmp 0x658359e3
call fcn.65835e80
mov eax, dword [esp]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
call ecx
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x14], ecx
jne 0x65835c8d
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x65835a0b
mov dword [ecx + 0x10], 0
jmp 0x65835a1a
mov edi, dword [esp + 0x30]
mov ebx, eax
xor eax, eax
call fcn.6585fb10
mov eax, ebx
mov byte [esp + 0xf], al
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov ebp, dword [ecx + 4]
mov dword [esp + 0x18], ebp
test al, al
je 0x65835a87
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x65835a43
mov dword [ecx + 0xc], 0
jmp 0x65835a51
lea edi, [ecx + 0xc]
mov esi, eax
xor eax, eax
call fcn.6585fb10
mov eax, esi
mov esi, dword [0x65a345b0]
mov ebx, dword [ecx + 0x14]
test esi, esi
jne 0x65835a63
mov dword [edx + 0x14], ebx
jmp 0x65835a6e
mov edi, dword [esp + 0x34]
mov eax, ebx
call fcn.6585fb10
mov dword [esp], ecx
call fcn.65834900
movzx eax, byte [esp + 0xf]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
movzx ecx, byte [esp + 0x54]
test cl, cl
je 0x65835892
mov ecx, dword [0x65a345b0]
mov esi, dword [esp + 0x48]
test ecx, ecx
jne 0x65835ab2
mov dword [edx + 0x10], esi
mov eax, esi
movzx ecx, byte [esp + 0xf]
mov edi, dword [esp + 0x38]
jmp 0x65835abf
mov edi, dword [esp + 0x38]
mov ecx, eax
mov eax, esi
call fcn.6585fb10
test eax, eax
je 0x65835ad7
movzx ebx, byte [eax + 0x1a]
test bl, bl
je 0x65835ad7
movzx ebx, byte [eax + 0x19]
test bl, bl
jne 0x65835c57
lea eax, [0x65a3447c]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call fcn.65802980
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
movzx edx, byte [esp + 0xf]
test dl, dl
je 0x65835b01
xor edx, edx
jmp 0x65835b36
mov edx, dword [ecx + 0x14]
mov ebx, ecx
mov ecx, edx
mov edx, ebx
jmp 0x65835b36
mov eax, dword [ecx + 0x10]
mov dword [esp], eax
call fcn.65834e90
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call fcn.658362e0
xor eax, eax
mov dword [eax], 0
add esp, 0x58
ret
mov edx, ecx
mov ecx, ebx
test ecx, ecx
je 0x65835bc1
movzx ebx, byte [ecx]
test bl, bl
jne 0x65835bc1
movzx ebx, byte [ecx + 2]
test bl, bl
jne 0x65835b52
mov ebx, dword [ecx + 0x14]
jmp 0x65835b32
mov dword [esp + 0x1c], edx
test edx, edx
je 0x65835b7c
mov ebx, dword [0x65a345b0]
mov ebp, dword [ecx + 0x14]
test ebx, ebx
jne 0x65835b6c
mov dword [edx + 0x14], ebp
jmp 0x65835ba1
lea edi, [edx + 0x14]
mov ebx, eax
mov eax, ebp
call fcn.6585fb10
mov eax, ebx
jmp 0x65835ba1
mov ebx, dword [0x65a345b0]
mov ebp, dword [ecx + 0x14]
test ebx, ebx
jne 0x65835b94
mov dword [eax + 0x14], ebp
mov ebx, eax
mov edi, dword [esp + 0x34]
jmp 0x65835ba1
mov edi, dword [esp + 0x34]
mov ebx, eax
mov eax, ebp
call fcn.6585fb10
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp], ecx
call fcn.65834900
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
jmp 0x65835b32
mov ecx, dword [0x65a345b0]
mov edx, dword [esp + 0x48]
test ecx, ecx
jne 0x65835bda
mov dword [eax + 0x10], edx
mov ecx, eax
mov edi, dword [esp + 0x38]
jmp 0x65835be7
mov edi, dword [esp + 0x38]
mov ecx, eax
mov eax, edx
call fcn.6585fb10
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x65835c4b
movzx ebx, byte [edx + 0x19]
test bl, bl
je 0x65835c0f
mov ebx, dword [0x65a345b0]
mov eax, dword [edx + 0xc]
test ebx, ebx
jne 0x65835c08
mov dword [ecx + 0x10], eax
jmp 0x65835be7
call fcn.6585fb10
jmp 0x65835be7
test edx, edx
je 0x65835c4b
mov eax, dword [esp + 0x18]
mov dword [ecx + 0xac], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xb0], eax
lea eax, [0x65980aac]
mov dword [esp], eax
call fcn.6585e570
lea eax, [0x658e4168]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.65835ef0
mov dword [ecx + 0x9c], 0
jmp 0x65835c13
mov ecx, dword [eax + 0x14]
mov dword [edx + 0xac], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 0xb0], eax
lea eax, [0x65980aac]
mov dword [esp], eax
call fcn.6585e570
lea eax, [0x658e6a79]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.65835ef0
lea eax, [0x658e6a61]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.65835ef0
call fcn.65837610
lea eax, [0x658e26fc]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.65837ef0
call fcn.65837680
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.658072a0
call fcn.65837610
call fcn.65837830
call fcn.65837680
lea eax, [0x658e5291]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65835ef0
call fcn.65837610
lea eax, [0x658e26fc]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.65837ef0
call fcn.65837680
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.658072a0
call fcn.65837610
call fcn.65837830
call fcn.65837680
call fcn.65837610
lea eax, [0x658e5791]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.65837ef0
call fcn.65837680
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x78]
mov dword [esp + 0x14], eax
call fcn.65837610
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.65837ef0
call fcn.65837680
call fcn.65837610
call fcn.65837830
call fcn.65837680
lea eax, [0x658e672a]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.65835ef0
call fcn.65837610
lea eax, [0x658e26fc]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.65837ef0
call fcn.65837680
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.658072a0
call fcn.65837610
call fcn.65837830
call fcn.65837680
lea eax, [0x658e526b]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65835ef0
call fcn.65837610
lea eax, [0x658e26fc]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.65837ef0
call fcn.65837680
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.658072a0
call fcn.65837610
call fcn.65837830
call fcn.65837680
lea eax, [0x658e5bdf]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.65835ef0
nop
call fcn.6585e6e0
jmp fcn.658357c0