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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x5ba797
sub esp, 0xb0
mov eax, 0
mov dword [esp + 0xac], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0xc4], 0
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.0054ac60
mov eax, dword [esp + 4]
mov dword [esp], eax
call fcn.0054ac60
mov eax, dword [0x8a5ff4]
mov ecx, dword [esp + 4]
lea edx, [0x634320]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004128e0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x5b9fd7
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x5b9fdb
xor ecx, ecx
xor eax, eax
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x190]
mov edx, dword [esp + 0xb4]
cmp ecx, edx
jne 0x5ba000
mov ebx, dword [eax + 0x198]
jmp 0x5ba006
mov ebx, dword [eax + 0x1a8]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0xb8]
cmp ebp, 0x202
ja 0x5ba0db
cmp ebp, 0x4e
jne 0x5ba0ce
mov esi, dword [esp + 0xc0]
mov edi, esi
cmp dword [esi + 8], 0xfffffff4
jne 0x5ba24c
mov edi, dword [eax + 0x2ec]
test edi, edi
je 0x5ba0c2
mov ebx, dword [esi + 0xc]
cmp ebx, 1
je 0x5ba0b0
cmp ebx, 0x10001
je 0x5ba09e
cmp ebx, 0x10002
jne 0x5ba08c
mov dword [esp + 0x9c], esi
cmp ecx, edx
sete cl
mov ebx, dword [eax + 0x1b0]
mov ebp, dword [esi + 0x24]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
xor edx, edx
xor edx, edx
mov dword [esp + 0x30], edx
xor edx, edx
jmp 0x5ba618
mov dword [esp + 0xc4], 0
add esp, 0xb0
ret
mov dword [esp + 0xc4], 0x10
add esp, 0xb0
ret
mov dword [esp + 0xc4], 0x20
add esp, 0xb0
ret
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
cmp ebp, 0x200
jae 0x5ba0f5
jmp 0x5ba245
lea ecx, [ebp - 0x204]
cmp ecx, 1
jbe 0x5ba0f5
lea ecx, [ebp - 0x207]
cmp ecx, 1
ja 0x5ba1c9
mov eax, dword [esp + 0xc0]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], 0x1206
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
call fcn.0054c040
mov eax, dword [esp + 0x58]
cmp eax, 0xffffffff
je 0x5ba17c
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + 0x1b0]
mov ecx, dword [ebx + 8]
mov ebx, dword [ebx + 4]
mov ebp, dword [esp + 0xb4]
cmp dword [edx + 0x190], ebp
xchg esi, ebx
sete bl
xchg esi, ebx
xor edi, edi
xor edi, edi
mov dword [esp + 0x2c], edi
xor edi, edi
jmp 0x5ba289
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.005bf500
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
cmp ebp, 0x1205
jne 0x5ba245
mov ecx, dword [eax + 0x2ec]
test ecx, ecx
jne 0x5ba1e4
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1205
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
call fcn.005494e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc0]
mov edx, dword [ecx]
mov ebx, dword [esp + 0xa0]
mov ebp, dword [ebx + 0x2ec]
mov dword [edx + 4], ebp
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0x2ec]
mov dword [ecx + 0x14], edx
mov dword [esp + 0xc4], eax
add esp, 0xb0
ret
mov edi, dword [esp + 0xc0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
call fcn.005494e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc4], eax
add esp, 0xb0
ret
inc edi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xa0]
cmp edi, ecx
jge 0x5ba2b9
mov edx, dword [ebx + edi*4]
xchg esi, eax
cmp byte [edx + 0x41], al
xchg esi, eax
jne 0x5ba2aa
movzx edx, byte [edx + 0x40]
test dl, dl
je 0x5ba2aa
mov edx, dword [esp + 0x2c]
cmp edx, eax
je 0x5ba2b0
inc edx
jmp 0x5ba27d
mov edx, dword [esp + 0x2c]
jmp 0x5ba27d
mov edx, dword [esp + 0xa0]
jmp 0x5ba2be
mov edi, 0xffffffff
cmp edi, ecx
jae 0x5ba605
mov eax, dword [ebx + edi*4]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x5ba2d5
mov eax, dword [eax + 0x2c]
jmp 0x5ba2f5
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x5ba2e1
mov eax, dword [eax + 0x24]
jmp 0x5ba2f5
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5ba2ed
mov eax, dword [eax + 0xc]
jmp 0x5ba2f5
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x58]
lea ebx, [esp + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], 0x1207
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0054c040
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5ba5b8
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x5ba385
mov ecx, dword [eax + 0x164]
test ecx, ecx
jne 0x5ba36c
mov ecx, dword [0x8a5fb8]
jmp 0x5ba385
mov edx, dword [eax + 0x168]
mov ecx, dword [ecx + 0x70]
mov dword [esp], edx
call ecx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 0x14]
mov dword [esp], edx
call fcn.0054a770
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x98]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
call fcn.005cc2b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
mov dword [esp + 4], 0x1215
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0054c040
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jg 0x5ba46c
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.005bf500
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x14]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
call fcn.005bf420
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x5ba4dd
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5ba4d9
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xa0]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
mov dword [esp], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.005bf500
lea edi, [esp + 0x78]
xor eax, eax
call fcn.0046c0b9
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x84], ebx
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], esi
lea edi, [esp + 0x5c]
lea esi, [esp + 0x78]
call fcn.0046c58a
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x14]
lea ebp, [esp + 0x5c]
mov ecx, dword [ecx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 0x407
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
call fcn.0054c040
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.005bf500
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
jmp 0x5ba24c
mov eax, edi
call fcn.0046bf30
inc edx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x9c]
cmp edx, ebx
jge 0x5ba648
mov esi, dword [edi + edx*4]
cmp byte [esi + 0x41], cl
jne 0x5ba639
movzx esi, byte [esi + 0x40]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5ba639
mov esi, dword [esp + 0x30]
cmp esi, ebp
je 0x5ba63f
inc esi
jmp 0x5ba60c
mov esi, dword [esp + 0x30]
jmp 0x5ba60c
mov esi, dword [esp + 0x9c]
jmp 0x5ba64d
mov edx, 0xffffffff
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x5ba760
test edx, edx
jge 0x5ba666
xor eax, eax
jmp 0x5ba762
mov dword [eax + 0x1dc], 0xffffffff
mov dword [eax + 0x1e0], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov ebp, dword [esi + 0x20]
sub ebx, ecx
sub ebp, edx
mov dword [eax + 0x1e4], ecx
mov dword [eax + 0x1e8], edx
mov dword [eax + 0x1ec], ebx
mov dword [eax + 0x1f0], ebp
mov ecx, dword [eax + 0x14]
mov dword [esp], ecx
call fcn.0054a770
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x1f8], eax
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x1f4], eax
mov eax, dword [ecx + 0x2bc]
mov dword [ecx + 0x204], eax
mov eax, dword [0x8cc0e0]
test eax, eax
je 0x5ba6ed
mov eax, dword [ecx + 0x208]
call fcn.0046beb0
mov dword [edi], eax
mov dword [ecx + 0x208], 0
mov eax, dword [ecx + 0x1d4]
mov edx, dword [ecx + 0x1d8]
mov eax, dword [eax + 0x10]
mov dword [esp], edx
lea edx, [ecx + 0x1dc]
mov dword [esp + 4], edx
call eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea eax, [0x5ba7b0]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xac], eax
mov byte [esp + 0x23], 1
mov eax, 1
jmp 0x5ba762
xor eax, eax
mov dword [esp + 0xc4], 0
test al, 1
je 0x5ba784
and eax, 0xfffffffe
mov byte [esp + 0x23], al
mov edx, dword [esp + 0xac]
mov eax, dword [edx]
call eax
add esp, 0xb0
ret
call fcn.0046aab0
jmp fcn.005b9f50