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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov eax, ecx
mov ebx, edx
push esi
push edi
mov dword [esp + 0x24], eax
mov edi, dword [eax]
mov dword [esp + 0x2c], edi
mov esi, dword [edi + 8]
test esi, esi
jne 0x5b8546f
cmp dword [edi + 0x78], esi
jne 0x5b85462
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x5b85462
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.05bf98f0
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x5b85488
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
jmp 0x5b85497
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ecx, dword [edi + eax*4 + 0xa0]
mov al, byte [edi + 0x13]
mov dword [esp + 0x14], ecx
test al, al
jne 0x5b854aa
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x5b854b9
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0xa0]
inc dword [edi + 0x2c]
dec dword [edi + 0x38]
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0x6a
mov dword [esp + 0x24], eax
call fcn.05b87710
mov edx, dword [ebp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x24]
push dword [esp + 0x10]
call fcn.05b87710
mov eax, dword [esp + 0x2c]
add esp, 4
mov cl, byte [eax + 0x10]
test cl, 1
je 0x5b8552b
cmp ebx, 0x36
je 0x5b8551e
xor eax, eax
cmp ebx, 0x39
setne al
lea ebx, [eax*2 + 0x37]
jmp 0x5b85523
mov ebx, 0x38
mov dword [esp + 0x18], 0x6b
test cl, 2
je 0x5b8569f
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x70], ecx
jg 0x5b8555e
push 0
push 0
push edx
mov edx, 0x33
mov ecx, esi
call fcn.05bf9640
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x5b8558d
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, ebx
sub eax, 0x36
je 0x5b855ae
sub eax, 1
je 0x5b855a7
sub eax, 2
jne 0x5b855c4
push dword [ebp + 0x14]
lea edx, [eax + 9]
push eax
jmp 0x5b855ba
mov edx, 0x32
jmp 0x5b855b3
mov edx, 0x33
push dword [ebp + 0x14]
push dword [esp + 0x14]
mov ecx, esi
call fcn.05bf94a0
add esp, 8
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x20]
cmp dword [esi + 0x70], ecx
jg 0x5b855e6
push 0
push edx
push 0
mov edx, 9
mov ecx, esi
call fcn.05bf9640
add esp, 0xc
jmp 0x5b85615
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x5b85627
mov eax, 0x5c54724
jmp 0x5b85634
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp ebx, 0x36
je 0x5b85644
mov eax, dword [ebp + 0x14]
cmp ebx, 0x39
jne 0x5b85648
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x70], ecx
jg 0x5b8566c
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x32
mov ecx, esi
call fcn.05bf9640
add esp, 0xc
jmp 0x5b8569f
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x5b856c2
push 0
push dword [esp + 0x20]
mov edx, 0x75
mov ecx, esi
push 0
call fcn.05bf9640
add esp, 0xc
mov edx, eax
jmp 0x5b856f9
mov edi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x5b85713
push 0x5c37db0
or edx, 0xffffffff
call fcn.05bf8580
add esp, 4
jmp 0x5b8574b
test edx, edx
jns 0x5b8571b
mov edx, dword [esi + 0x6c]
dec edx
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x5b85740
push 0xffffffffffffffff
push 0x5c37db0
mov edx, eax
mov ecx, esi
call fcn.05bf8330
add esp, 8
jmp 0x5b8574b
mov dword [eax + 0x10], 0x5c37db0
mov byte [eax + 1], 0xff
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x70], ecx
jg 0x5b8577a
push dword [esp + 0x14]
mov edx, 0x39
mov ecx, esi
push 0
push dword [esp + 0x24]
call fcn.05bf9640
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x5b857ad
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x39
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp ebx, 0x39
jne 0x5b857bb
cmp dword [esp + 0x18], 0x6a
je 0x5b857c7
jmp 0x5b8581f
cmp ebx, 0x37
jne 0x5b8581f
cmp dword [esp + 0x18], 0x6b
jne 0x5b8581f
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5b857e5
push edx
push dword [ebp + 0x14]
mov edx, ebx
mov ecx, esi
push dword [esp + 0x18]
call fcn.05bf9640
add esp, 0xc
jmp 0x5b8581f
lea eax, [ecx + 1]
xor edx, edx
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov byte [eax + ecx*4], bl
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5b85844
mov eax, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x18]
push eax
push eax
push dword [ebp + 0xc]
call fcn.05bf9640
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x5b8587d
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov byte [ecx + 1], 0
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5b85893
mov eax, 0x5c54724
jmp 0x5b858a0
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5b858c5
push edx
push dword [ebp + 0x14]
mov edx, ebx
mov ecx, esi
push dword [esp + 0x18]
call fcn.05bf9640
add esp, 0xc
jmp 0x5b858fb
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x28]
mov ecx, edi
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 8]
call fcn.05be1b30
mov edx, eax
test edx, edx
jne 0x5b85918
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x5b85930
push edx
mov edx, 0xfffffffe
call fcn.05bf8580
add esp, 4
jmp 0x5b85942
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xfe
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x5b85959
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x20]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5b85977
push edx
mov edx, esi
call fcn.05bf8c80
add esp, 4
jmp 0x5b85980
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5b8599c
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5b8599c
movzx eax, al
mov dword [edi + eax*4 + 0xa0], ecx
inc byte [edi + 0x13]
test ebx, ebx
je 0x5b859b4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5b859b4
movzx eax, al
mov dword [edi + eax*4 + 0xa0], ebx
inc byte [edi + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret