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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x6f872c]
mov edx, dword [esp + 0xa0]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
xor eax, esp
mov dword [esp + 0x50], ecx
push ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x60], ecx
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x6c], ecx
xor eax, eax
test esi, esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], ecx
jbe 0x5b78a5
movzx ecx, word [ebp + eax*2]
inc word [esp + ecx*2 + 0x54]
lea ecx, [esp + ecx*2 + 0x54]
inc eax
cmp eax, esi
jb 0x5b7892
mov eax, dword [edx]
mov ecx, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
cmp word [esp + ecx*2 + 0x54], 0
jne 0x5b78c2
dec ecx
cmp ecx, 1
jae 0x5b78b4
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jbe 0x5b78d0
mov dword [esp + 0x10], ecx
mov eax, ecx
test ecx, ecx
jne 0x5b791b
mov word [esp + 0xe], cx
mov ecx, dword [ebx]
mov byte [esp + 0xc], 0x40
mov byte [esp + 0xd], 1
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebx]
add ecx, 4
mov dword [ebx], ecx
mov dword [ecx], eax
mov eax, dword [ebx]
pop esi
add eax, 4
mov dword [ebx], eax
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.005bbd6d
add esp, 0x8c
ret
mov esi, 1
cmp word [esp + esi*2 + 0x54], 0
jne 0x5b7962
cmp word [esp + esi*2 + 0x56], 0
jne 0x5b7952
cmp word [esp + esi*2 + 0x58], 0
jne 0x5b7955
cmp word [esp + esi*2 + 0x5a], 0
jne 0x5b795a
cmp word [esp + esi*2 + 0x5c], 0
jne 0x5b795f
add esi, 5
cmp esi, 0xf
jbe 0x5b7920
jmp 0x5b7962
inc esi
jmp 0x5b7962
add esi, 2
jmp 0x5b7962
add esi, 3
jmp 0x5b7962
add esi, 4
cmp eax, esi
jae 0x5b796a
mov dword [esp + 0x10], esi
mov edx, 1
mov eax, edx
push edi
movzx edi, word [esp + eax*2 + 0x58]
add edx, edx
sub edx, edi
js 0x5b7a3a
inc eax
cmp eax, 0xf
jbe 0x5b7972
test edx, edx
mov edi, dword [esp + 0xa0]
jle 0x5b79a3
test edi, edi
je 0x5b7a3a
cmp ecx, 1
jne 0x5b7a3a
mov word [esp + 0x7a], 0
mov eax, 2
nop
mov dx, word [esp + eax + 0x78]
add dx, word [esp + eax + 0x58]
mov cx, word [esp + eax + 0x5a]
add cx, dx
mov word [esp + eax + 0x7a], dx
mov word [esp + eax + 0x7c], cx
add eax, 4
cmp eax, 0x1e
jb 0x5b79b0
mov ecx, dword [esp + 0xa8]
xor eax, eax
test ecx, ecx
jbe 0x5b7a15
mov ecx, dword [esp + 0x1c]
cmp word [ebp + eax*2], 0
je 0x5b7a09
movzx edx, word [ebp + eax*2]
movzx edx, word [esp + edx*2 + 0x78]
mov word [ecx + edx*2], ax
movzx edx, word [ebp + eax*2]
inc word [esp + edx*2 + 0x78]
lea edx, [esp + edx*2 + 0x78]
mov edx, dword [esp + 0xa8]
inc eax
cmp eax, edx
jb 0x5b79e5
mov eax, edi
sub eax, 0
mov ecx, 0xffffffff
je 0x5b7a64
dec eax
je 0x5b7a42
mov dword [esp + 0x2c], 0x6c0b40
mov dword [esp + 0x38], 0x6c0b80
mov dword [esp + 0x30], ecx
jmp 0x5b7a78
or eax, 0xffffffff
jmp 0x5b7d0e
mov eax, 0x6c0ac0
sub eax, 0x202
mov dword [esp + 0x2c], eax
mov eax, 0x6c0b00
sub eax, 0x202
mov dword [esp + 0x30], pe_nt_image_headers32
jmp 0x5b7a74
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x13
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
xor ebp, ebp
xor ebx, ebx
cmp edi, 1
lea ecx, [eax - 1]
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
jne 0x5b7ab4
cmp eax, 0x5b0
jae 0x5b7d09
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
lea esp, [esp]
mov al, byte [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
sub al, bl
mov byte [esp + 0x11], al
mov ax, word [esi]
movzx ecx, ax
cmp ecx, edx
jge 0x5b7ae8
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x5b7b15
jle 0x5b7b09
movzx eax, word [esi]
mov ecx, dword [esp + 0x38]
shl eax, 1
mov dl, byte [eax + ecx]
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x10], dl
mov dx, word [eax + ecx]
mov word [esp + 0x12], dx
jmp 0x5b7b15
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
mov edi, ebp
shr edi, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
lea esi, [edx*4]
add edi, eax
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
sub eax, edx
sub ecx, esi
test eax, eax
mov dword [ecx], edi
jne 0x5b7b44
mov edx, dword [esp + 0x18]
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x5b7b66
shr eax, 1
test ebp, eax
jne 0x5b7b60
test eax, eax
je 0x5b7b75
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jmp 0x5b7b77
xor ebp, ebp
mov esi, dword [esp + 0x1c]
add esi, 2
dec word [esp + edx*2 + 0x58]
cmp word [esp + edx*2 + 0x58], 0
mov dword [esp + 0x1c], esi
jne 0x5b7baa
cmp edx, dword [esp + 0x20]
je 0x5b7c76
mov ecx, dword [esp + 0x54]
mov edx, esi
movzx eax, word [edx]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x5b7ac0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
and esi, ebp
cmp esi, eax
mov dword [esp + 0x48], esi
je 0x5b7ac0
test ebx, ebx
jne 0x5b7bd2
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x24], edx
mov eax, 1
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, edi
jae 0x5b7c1c
lea esi, [esp + edx*2 + 0x58]
lea ecx, [ecx]
movzx edi, word [esi]
sub eax, edi
test eax, eax
jle 0x5b7c18
mov edi, dword [esp + 0x20]
inc ecx
inc edx
add esi, 2
shl eax, 1
cmp edx, edi
jb 0x5b7c00
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
add edx, eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0xa0], 1
mov dword [esp + 0x28], edx
jne 0x5b7c48
mov eax, edx
cmp eax, 0x5b0
jae 0x5b7d09
mov edx, esi
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
mov byte [eax + edx*4], cl
mov ecx, dword [esi]
mov al, byte [esp + 0x14]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x34], edx
mov word [eax + edx*4 + 2], cx
jmp 0x5b7ac0
mov edi, dword [esp + 0x3c]
mov al, dl
sub al, bl
test ebp, ebp
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], 0
je 0x5b7cea
mov esi, dword [esp + 0x24]
test ebx, ebx
je 0x5b7cba
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
and ecx, ebp
cmp ecx, eax
je 0x5b7cba
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, ebp
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x5b7cdb
shr eax, 1
test ebp, eax
jne 0x5b7cd5
test eax, eax
je 0x5b7cea
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jne 0x5b7c96
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
lea eax, [edx*4]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edx
xor eax, eax
jmp 0x5b7d0e
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bbd6d
add esp, 0x8c
ret