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

Disassembly:
sub esp, 0x20
mov eax, ecx
push ebx
mov dword [esp + 0x1c], eax
mov ebx, dword [eax]
test ebx, ebx
je 0x5d7f23
cmp dword [ebx + 8], 3
jne 0x5d7f23
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
push ebp
mov ebp, dword [esp + 0x2c]
test eax, eax
jns 0x5d79f6
mov eax, dword [ebp]
mov dword [esp + 0x38], eax
cmp byte [ebx + 0xe], 0
push esi
push edi
je 0x5d7a1a
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
push ebx
push dword [esp + 0x40]
push esi
push ebp
call fcn.005fe140
add esp, 0x10
jmp 0x5d7b3c
cmp byte [ebx + 0xd], 0
jne 0x5d7b38
test byte [ebp + 6], 2
je 0x5d7a2f
mov edx, dword [ebp + 8]
jmp 0x5d7a31
xor edx, edx
mov esi, dword [esp + 0x38]
test byte [esi + 6], 2
je 0x5d7a40
mov eax, dword [esi + 8]
jmp 0x5d7a42
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test byte [eax + 6], 2
je 0x5d7a55
mov ecx, dword [eax + 8]
jmp 0x5d7a57
xor ecx, ecx
mov edi, dword [ebx + 0x1c]
mov dword [esp + 0x1c], edi
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x18], edi
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x20], edi
test edi, edi
jle 0x5d7b40
mov ebp, dword [esp + 0x24]
sub edx, ebp
sub ecx, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
lea esp, [esp]
movsx edi, word [edx + ebp]
lea ebp, [ebp + 2]
movsx edx, word [ecx + ebp - 2]
movsx esi, word [ebp - 2]
add edx, dword [esp + 0x14]
add esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
add edi, dword [esp + 0x1c]
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebx + 0x4c]
imul eax, edi
add ecx, 0x800
add eax, ecx
mov ecx, dword [esp + 0x24]
sar eax, 0xc
mov word [ecx + ebp - 2], ax
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x60]
imul eax, edx
imul ecx, edi
add ecx, eax
mov eax, dword [ebx + 0x5c]
imul eax, esi
add ecx, 0x800
add eax, ecx
sar eax, 0xc
mov word [ebp - 2], ax
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
imul eax, esi
imul ecx, edx
mov edx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [ebx + 0x64]
imul eax, edi
add ecx, 0x800
add eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 0xc
mov word [ecx + ebp - 2], ax
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jg 0x5d7a90
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx]
mov dword [esp + 0x10], edi
cmp byte [edi + 0x70], 0
jne 0x5d7f17
mov ecx, dword [edi + 4]
mov edx, 1
mov ebx, dword [edi + 0x78]
shl edx, cl
mov ecx, dword [edi + 0x74]
dec edx
not edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
test ebx, ebx
mov edx, dword [edi + 0x7c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
jne 0x5d7b8a
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x34], 0
jne 0x5d7b95
mov dword [esp + 0x34], ecx
test byte [ebp + 6], 2
je 0x5d7ba0
mov ecx, dword [ebp + 8]
jmp 0x5d7ba2
xor ecx, ecx
test byte [esi + 6], 2
mov dword [esp + 0x3c], ecx
je 0x5d7bb1
mov ebp, dword [esi + 8]
jmp 0x5d7bb3
xor ebp, ebp
test byte [eax + 6], 2
je 0x5d7bbe
mov eax, dword [eax + 8]
jmp 0x5d7bc0
xor eax, eax
cmp byte [edi + 0x80], 0
mov dword [esp + 0x38], eax
je 0x5d7ce1
test ebx, ebx
jle 0x5d7f17
sub ecx, ebp
mov esi, edx
sub eax, ebp
mov dword [esp + 0x3c], ecx
not esi
mov dword [esp + 0x38], eax
lea esp, [esp]
movsx edi, word [ecx + ebp]
lea eax, [edi + 0x1000]
cmp edi, 0xfffff000
jge 0x5d7c25
mov ecx, 0xfffff000
sub ecx, edi
test ecx, edx
je 0x5d7c0f
mov ecx, esi
mov edi, dword [esp + 0x1c]
mov eax, 0xffffe000
sub ax, word [edi + ecx*2]
mov ecx, dword [esp + 0x3c]
movzx eax, ax
jmp 0x5d7c33
test eax, edx
je 0x5d7c2b
mov eax, esi
mov edi, dword [esp + 0x1c]
movzx eax, word [edi + eax*2]
mov word [ecx + ebp], ax
movsx edi, word [ebp]
lea eax, [edi + 0x1000]
cmp edi, 0xfffff000
jge 0x5d7c68
mov ecx, 0xfffff000
sub ecx, edi
test ecx, edx
je 0x5d7c56
mov ecx, esi
mov edi, dword [esp + 0x18]
mov eax, 0xffffe000
sub ax, word [edi + ecx*2]
movzx eax, ax
jmp 0x5d7c76
test eax, edx
je 0x5d7c6e
mov eax, esi
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + eax*2]
mov word [ebp], ax
mov eax, dword [esp + 0x38]
movsx edi, word [eax + ebp]
lea eax, [edi + 0x1000]
cmp edi, 0xfffff000
jge 0x5d7caf
mov ecx, 0xfffff000
sub ecx, edi
test ecx, edx
je 0x5d7c9d
mov ecx, esi
mov edi, dword [esp + 0x34]
mov eax, 0xffffe000
sub ax, word [edi + ecx*2]
movzx eax, ax
jmp 0x5d7cbd
test eax, edx
je 0x5d7cb5
mov eax, esi
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x38]
dec ebx
mov word [ecx + ebp], ax
add ebp, 2
mov ecx, dword [esp + 0x3c]
test ebx, ebx
jg 0x5d7bf0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret 0x10
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x5d7f17
mov esi, edx
sub ebp, ecx
sub dword [esp + 0x38], ecx
not esi
lea ecx, [ecx]
movsx ecx, word [ecx]
lea eax, [ecx + 0x1000]
cmp ecx, 0xfffff000
jge 0x5d7d2e
mov eax, 0xfffff000
sub eax, ecx
test eax, edx
je 0x5d7d1e
mov eax, esi
mov ecx, dword [esp + 0x1c]
movsx ebx, word [ecx + eax*2]
neg ebx
mov dword [esp + 0x20], ebx
jmp 0x5d7d40
test eax, edx
je 0x5d7d34
mov eax, esi
mov ecx, dword [esp + 0x1c]
movsx eax, word [ecx + eax*2]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x3c]
movsx ecx, word [edi + ebp]
lea eax, [edi + ebp]
mov dword [esp + 0x28], eax
lea eax, [ecx + 0x1000]
cmp ecx, 0xfffff000
jge 0x5d7d76
mov eax, 0xfffff000
sub eax, ecx
test eax, edx
je 0x5d7d6a
mov eax, esi
mov ecx, dword [esp + 0x18]
movsx ebx, word [ecx + eax*2]
neg ebx
jmp 0x5d7d84
test eax, edx
je 0x5d7d7c
mov eax, esi
mov ecx, dword [esp + 0x18]
movsx ebx, word [ecx + eax*2]
mov eax, dword [esp + 0x38]
add eax, edi
mov dword [esp + 0x2c], eax
movsx ecx, word [eax]
lea eax, [ecx + 0x1000]
cmp ecx, 0xfffff000
jge 0x5d7db8
mov eax, 0xfffff000
sub eax, ecx
test eax, edx
je 0x5d7dac
mov eax, esi
mov ecx, dword [esp + 0x34]
movsx edi, word [ecx + eax*2]
neg edi
jmp 0x5d7dc6
test eax, edx
je 0x5d7dbe
mov eax, esi
mov ecx, dword [esp + 0x34]
movsx edi, word [ecx + eax*2]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb0]
mov eax, dword [eax + 0xac]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xa8]
imul eax, dword [esp + 0x20]
add eax, 0x800
add ecx, eax
sar ecx, 0xc
test ecx, ecx
jns 0x5d7e19
neg ecx
test ecx, edx
je 0x5d7e03
mov ecx, esi
mov edx, dword [esp + 0x14]
mov eax, 0xffffe000
sub ax, word [edx + ecx*2]
mov edx, dword [esp + 0x24]
movzx eax, ax
jmp 0x5d7e27
test ecx, edx
je 0x5d7e1f
mov ecx, esi
mov eax, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x3c]
mov word [ecx], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb4]
mov eax, dword [eax + 0xbc]
imul ecx, dword [esp + 0x20]
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x10]
add ecx, 0x800
mov eax, dword [eax + 0xb8]
imul eax, ebx
add ecx, eax
sar ecx, 0xc
test ecx, ecx
jns 0x5d7e82
neg ecx
test ecx, edx
je 0x5d7e6c
mov ecx, esi
mov edx, dword [esp + 0x14]
mov eax, 0xffffe000
sub ax, word [edx + ecx*2]
mov edx, dword [esp + 0x24]
movzx eax, ax
jmp 0x5d7e90
test ecx, edx
je 0x5d7e88
mov ecx, esi
mov eax, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x28]
mov word [ecx], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc8]
mov eax, dword [eax + 0xc4]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc0]
imul eax, dword [esp + 0x20]
add eax, 0x800
add ecx, eax
sar ecx, 0xc
test ecx, ecx
jns 0x5d7ee6
neg ecx
test ecx, edx
je 0x5d7ed4
mov ecx, esi
mov ebx, dword [esp + 0x14]
mov eax, 0xffffe000
sub ax, word [ebx + ecx*2]
movzx eax, ax
jmp 0x5d7ef4
test ecx, edx
je 0x5d7eec
mov ecx, esi
mov eax, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x2c]
mov word [ecx], ax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
dec eax
add ecx, 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
test eax, eax
jg 0x5d7d00
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret 0x10
xor al, al
pop ebx
add esp, 0x20
ret 0x10