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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
cmp dword [ecx + 0x18], 0
jne 0x5b095c
mov eax, 0xffff8c00
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 0
jne 0x5b0976
movzx eax, byte [ecx + 0xca]
mov dword [edi + 0x10], eax
movzx eax, byte [ecx + 0xcb]
mov dword [edi + 0x14], eax
mov dl, byte [ecx + 0xc8]
test dl, dl
jne 0x5b098a
mov eax, 0xffff8f00
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc0]
push ebx
push esi
mov dword [ebp - 0x18], eax
lea esi, [eax + 4]
mov eax, dword [ecx + 0xcc]
shr eax, 1
and eax, 1
push esi
push eax
movzx eax, byte [ecx + 0xc9]
push eax
movzx eax, dl
push eax
call fcn.00594d70
mov ecx, dword [edi + 0x3c]
add esp, 0x10
lea eax, [ecx + 0x41c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
test byte [eax + 0xcc], 2
je 0x5b09d9
cmp dword [ecx + 0x1e0], 0
jne 0x5b0a2e
push 0
call fcn.005cc76d
mov ebx, eax
mov ecx, edx
shrd eax, ecx, 0x18
mov ecx, dword [ebp - 0xc]
push 0x1c
mov byte [ecx], al
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, ebx
mov ecx, edx
shrd eax, ecx, 0x10
mov ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov eax, ebx
shrd eax, edx, 8
mov byte [ecx + 1], al
add ecx, 2
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
inc eax
mov byte [ecx], bl
mov ecx, dword [edi]
push eax
push dword [ecx + 0x1c]
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x10
test eax, eax
jne 0x5b1220
mov ecx, dword [edi + 0x3c]
movups xmm0, xmmword [ecx + 0x41c]
movups xmmword [esi + 2], xmm0
movups xmm0, xmmword [ecx + 0x42c]
movups xmmword [esi + 0x12], xmm0
mov ebx, dword [edi + 0x38]
mov edx, dword [ebx + 0x10]
cmp edx, 0x10
jb 0x5b0a66
cmp edx, 0x20
ja 0x5b0a66
cmp dword [edi + 8], 0
jne 0x5b0a66
mov eax, dword [edi + 0x3c]
cmp dword [eax + 0x880], 0
jne 0x5b0a6d
xor edx, edx
cmp dword [edi + 8], edx
jne 0x5b0a9f
cmp dword [ebx + 0x6c], 0
je 0x5b0a9f
cmp dword [ebx + 0x70], 0
je 0x5b0a9f
mov ecx, dword [edi]
lea eax, [ebx + 0x14]
push 0x20
push eax
push dword [ecx + 0x1c]
mov eax, dword [ecx + 0x18]
call eax
add esp, 0xc
test eax, eax
jne 0x5b1220
mov eax, dword [edi + 0x38]
mov edx, 0x20
mov dword [eax + 0x10], edx
mov byte [esi + 0x22], dl
xor ecx, ecx
add esi, 0x23
test edx, edx
je 0x5b0abf
nop dword [eax + eax]
mov eax, dword [edi + 0x38]
mov al, byte [ecx + eax + 0x14]
inc ecx
mov byte [esi], al
inc esi
cmp ecx, edx
jb 0x5b0ab0
mov eax, dword [edi]
test byte [eax + 0xcc], 2
je 0x5b0b0b
mov eax, dword [edi + 0x3c]
cmp dword [eax + 0x1e0], 0
jne 0x5b0adc
mov byte [esi], 0
inc esi
jmp 0x5b0b0b
mov al, byte [eax + 0x1e4]
mov byte [esi], al
inc esi
mov ecx, dword [edi + 0x3c]
movzx eax, byte [ecx + 0x1e4]
push eax
push dword [ecx + 0x1e0]
push esi
call fcn.005c9900
mov eax, dword [edi + 0x3c]
add esp, 0xc
movzx eax, byte [eax + 0x1e4]
add esi, eax
mov ecx, dword [edi + 0x14]
mov ebx, esi
mov eax, dword [edi]
add esi, 2
mov dword [ebp - 0xc], ebx
mov edx, dword [eax + ecx*4]
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edx]
test eax, eax
je 0x5b0ba4
mov ebx, edx
nop
push eax
call fcn.005a9290
add esp, 4
test eax, eax
je 0x5b0b8b
mov edx, dword [edi]
movzx ecx, byte [edx + 0xc9]
cmp dword [eax + 0x18], ecx
jg 0x5b0b8b
movzx ecx, byte [edx + 0xcb]
cmp dword [eax + 0x20], ecx
jl 0x5b0b8b
mov ecx, dword [edx + 0xcc]
test cl, 2
je 0x5b0b68
test byte [eax + 0x24], 4
jne 0x5b0b8b
test cl, 0x40
je 0x5b0b73
cmp dword [eax + 8], 0x2a
je 0x5b0b8b
mov eax, dword [ebx]
mov ecx, dword [ebp - 8]
sar eax, 8
inc ecx
mov byte [esi], al
mov al, byte [ebx]
mov byte [esi + 1], al
add esi, 2
mov dword [ebp - 8], ecx
jmp 0x5b0b8e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
lea ebx, [edx + eax*4]
mov eax, dword [ebx]
test eax, eax
jne 0x5b0b30
mov ebx, dword [ebp - 0xc]
cmp dword [edi + 8], 0
jne 0x5b0bb3
mov word [esi], 0xff00
add esi, 2
inc ecx
mov eax, dword [edi]
test dword [eax + 0xcc], 0x20000
je 0x5b0bca
mov word [esi], 0x56
add esi, 2
inc ecx
mov eax, ecx
add cl, cl
shr eax, 7
mov byte [ebx], al
lea eax, [esi + 2]
mov byte [ebx + 1], cl
lea edx, [eax + 2]
mov word [esi], 1
xor ebx, ebx
mov ecx, dword [edi + 0xd8]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0xc0]
lea esi, [eax + 0x4000]
test ecx, ecx
je 0x5b0c76
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b0c02
sub ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0xc0]
cmp esi, edx
jb 0x5b0c76
lea eax, [ecx + 9]
sub esi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc0]
cmp esi, dword [ebp - 0x10]
jb 0x5b0c76
mov word [edx], bx
lea eax, [ecx + 5]
shr eax, 8
mov byte [edx + 2], al
mov al, cl
add al, 5
mov byte [edx + 3], al
lea eax, [ecx + 3]
shr eax, 8
mov byte [edx + 4], al
mov al, cl
add al, 3
mov byte [edx + 5], al
mov eax, ecx
mov byte [edx + 6], bl
shr eax, 8
mov byte [edx + 7], al
lea eax, [edx + 9]
push ecx
mov byte [edx + 8], cl
push dword [edi + 0xd8]
push eax
call fcn.005c9900
mov ebx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [edi + 0xc0]
mov ecx, dword [ebp - 4]
lea edx, [eax + 0x4000]
add ecx, 2
mov dword [ebp - 0x10], 0
add ecx, ebx
mov esi, eax
cmp dword [edi + 8], 1
jne 0x5b0cee
cmp edx, ecx
jb 0x5b0cee
mov eax, dword [edi + 0xec]
sub edx, ecx
add eax, 5
cmp edx, eax
jb 0x5b0cee
mov word [ecx], 0x1ff
mov byte [ecx + 2], 0
mov al, byte [edi + 0xec]
inc al
mov byte [ecx + 3], al
mov al, byte [edi + 0xec]
mov byte [ecx + 4], al
lea eax, [edi + 0xf0]
push dword [edi + 0xec]
push eax
lea eax, [ecx + 5]
push eax
call fcn.005c9900
mov esi, dword [edi + 0xec]
add esp, 0xc
add esi, 5
mov dword [ebp - 0x10], esi
mov esi, dword [edi + 0xc0]
add ebx, dword [ebp - 0x10]
lea edx, [esi + 0x4000]
mov eax, dword [ebp - 4]
mov esi, dword [edi]
add eax, 2
add eax, ebx
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
cmp byte [esi + 0xc9], 3
mov dword [ebp - 0x14], edx
jne 0x5b0db2
mov esi, dword [esi + 0x74]
mov eax, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x5b0d32
lea eax, [eax + 4]
add edx, 4
cmp dword [eax], 0
jne 0x5b0d27
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x5b0db2
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [edx + 6]
cmp dword [ebp - 0x10], eax
jb 0x5b0db2
xor ebx, ebx
test ecx, ecx
je 0x5b0d82
mov edi, dword [ebp - 0xc]
push ecx
call fcn.00594c10
mov byte [edi + ebx + 6], al
mov byte [edi + ebx + 7], 3
push dword [esi]
call fcn.00594c10
mov byte [edi + ebx + 8], al
lea esi, [esi + 4]
mov byte [edi + ebx + 9], 1
add esp, 8
mov ecx, dword [esi]
add ebx, 4
test ecx, ecx
jne 0x5b0d51
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 1]
mov byte [eax], 0
lea eax, [ebx + 2]
shr eax, 8
mov byte [ecx], 0xd
mov byte [ecx + 1], al
mov al, bl
add al, 2
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 3], al
mov byte [ecx + 4], bl
add ebx, 6
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [edi]
mov esi, dword [ebp - 4]
mov edx, dword [edi + 0xc0]
add esi, 2
add esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [eax + 0x78]
add edx, 0x4000
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx]
test eax, eax
je 0x5b0e06
nop
push eax
call fcn.005a4520
add esp, 4
test eax, eax
je 0x5b0e75
mov ecx, dword [ebp - 0x14]
add ebx, 4
add ecx, 2
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx]
test eax, eax
jne 0x5b0de0
mov edx, dword [ebp - 0x10]
xor ebx, ebx
cmp edx, esi
jb 0x5b0e77
sub edx, esi
lea eax, [ecx + 6]
cmp edx, eax
jb 0x5b0e77
mov eax, dword [edi]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x5b0e75
mov edi, dword [ebp - 0x14]
push eax
call fcn.005a4520
lea edi, [edi + 4]
add esp, 4
mov cl, byte [eax + 5]
mov byte [ebx + esi + 6], cl
mov al, byte [eax + 4]
mov byte [ebx + esi + 7], al
add ebx, 2
mov eax, dword [edi]
test eax, eax
jne 0x5b0e26
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x5b0e75
lea eax, [ebx + 2]
mov word [esi], 0xa00
shr eax, 8
mov byte [esi + 2], al
mov al, bl
add al, 2
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], bl
add ebx, 6
jmp 0x5b0e77
xor ebx, ebx
mov esi, dword [edi + 0xc0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add edx, ebx
add eax, 2
xor ebx, ebx
add eax, edx
lea ecx, [esi + 0x4000]
cmp ecx, eax
jb 0x5b0eb4
sub ecx, eax
cmp ecx, 6
jb 0x5b0eb4
mov dword [eax], 0x2000b00
mov ebx, 6
mov word [eax + 4], 1
mov esi, dword [edi + 0xc0]
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x4000]
add edx, ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [edi]
add ecx, 2
mov dword [ebp - 0x14], ebx
add ecx, edx
mov edi, dword [ebp - 0x14]
mov ebx, esi
mov dword [ebp - 8], edi
test dword [edi + 0xcc], 0x380
je 0x5b0f22
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
cmp eax, ecx
jb 0x5b0f22
mov esi, dword [edi]
sub eax, ecx
mov dword [ebp - 8], esi
cmp eax, 5
jb 0x5b0f22
mov dword [ecx], 0x1000100
mov eax, dword [edi]
mov dword [ebp - 0x10], 5
mov eax, dword [eax + 0xcc]
shr eax, 7
and al, 7
mov byte [ecx + 4], al
mov eax, dword [edi]
mov ebx, dword [edi + 0xc0]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
lea ecx, [ebx + 0x4000]
add edx, dword [ebp - 0x10]
mov edi, esi
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x14], ecx
add eax, edx
mov dword [ebp - 0x10], 0
test dword [edi + 0xcc], 0x8000
mov ecx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
je 0x5b0f83
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x14], eax
jb 0x5b0f83
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
sub ebx, eax
cmp ebx, 4
jb 0x5b0f83
mov dword [eax], 0x400
mov ecx, dword [edi + 0xc0]
mov esi, dword [edi]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
lea ebx, [ecx + 0x4000]
add edx, dword [ebp - 0x10]
add eax, 2
add eax, edx
mov dword [ebp + 8], ebx
test dword [esi + 0xcc], 0x400
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov ecx, esi
je 0x5b0fde
cmp byte [esi + 0xc9], 0
mov ebx, dword [ebp - 0xc]
je 0x5b0fde
cmp dword [ebp + 8], eax
jb 0x5b0fde
mov esi, dword [ebp + 8]
sub esi, eax
cmp esi, 4
jb 0x5b0fde
mov dword [eax], 0x1600
mov ebx, dword [edi + 0xc0]
mov ecx, dword [edi]
mov dword [ebp - 0x14], 4
add edx, dword [ebp - 0x14]
lea esi, [ebx + 0x4000]
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x10], esi
add eax, edx
mov dword [ebp - 0x14], 0
test dword [ecx + 0xcc], 0x800
mov esi, ebx
mov dword [ebp + 8], ecx
je 0x5b1046
cmp byte [ecx + 0xc9], 0
mov dword [ebp + 8], ecx
je 0x5b1046
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x10], eax
jb 0x5b1046
mov dword [ebp + 8], ecx
lea ecx, [ebx + 0x4000]
sub ecx, eax
cmp ecx, 4
jb 0x5b1046
mov dword [eax], 0x1700
mov ebx, dword [edi]
mov esi, dword [edi + 0xc0]
mov dword [ebp - 0x14], 4
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
add esi, 0x4000
add edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], edx
mov esi, dword [eax + 0xa4]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x5b1139
mov ecx, dword [esi]
test ecx, ecx
je 0x5b109f
xor edx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b1080
sub ecx, dword [ebp + 8]
add esi, 4
movzx eax, cl
inc edx
add edx, eax
mov ecx, dword [esi]
test ecx, ecx
jne 0x5b1077
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
add esi, 2
add esi, edx
cmp ecx, esi
jb 0x5b1139
mov eax, dword [ebp - 0x14]
sub ecx, esi
add eax, 6
cmp ecx, eax
jb 0x5b1139
mov byte [esi], bl
lea ebx, [esi + 1]
mov byte [ebx], 0x10
add ebx, 5
mov eax, dword [edi]
mov esi, dword [eax + 0xa4]
mov ecx, dword [esi]
test ecx, ecx
je 0x5b110f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b10e0
sub ecx, edx
movzx eax, cl
push eax
mov byte [ebx], cl
lea eax, [ebx + 1]
push dword [esi]
push eax
call fcn.005c9900
movzx eax, byte [ebx]
add esi, 4
inc ebx
add esp, 0xc
add ebx, eax
mov ecx, dword [esi]
test ecx, ecx
jne 0x5b10d7
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, 2
add ecx, edx
sub ebx, ecx
lea eax, [ebx - 6]
shr eax, 8
mov byte [ecx + 4], al
mov al, bl
sub al, 6
mov byte [ecx + 5], al
lea eax, [ebx - 4]
shr eax, 8
mov byte [ecx + 2], al
mov al, bl
sub al, 4
mov byte [ecx + 3], al
mov eax, dword [edi]
add edx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edx
lea ecx, [ebx + 2]
add ecx, edx
test dword [eax + 0xcc], 0x10000
je 0x5b11cd
mov esi, dword [edi + 0xc0]
add esi, 0x4000
cmp esi, ecx
jb 0x5b11cd
mov eax, dword [edi + 0x38]
sub esi, ecx
mov ebx, dword [eax + 0x70]
lea eax, [ebx + 4]
mov dword [ebp + 8], eax
cmp esi, eax
jb 0x5b11c6
mov word [ecx], 0x2300
mov eax, ebx
shr eax, 8
mov byte [ecx + 2], al
mov byte [ecx + 3], bl
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x14], 4
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x5b11b4
test ebx, ebx
je 0x5b11be
push ebx
push eax
lea eax, [ecx + 4]
push eax
call fcn.005c9900
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp 0x5b11cf
mov ebx, dword [ebp - 4]
mov eax, 4
jmp 0x5b11cf
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
jmp 0x5b11cf
mov ebx, dword [ebp - 4]
xor eax, eax
jmp 0x5b11cf
xor eax, eax
add edx, eax
je 0x5b11e4
mov eax, edx
shr eax, 8
mov byte [ebx], al
lea eax, [ebx + 1]
lea ebx, [edx + 1]
mov byte [eax], dl
add ebx, eax
mov eax, dword [edi + 0xc0]
sub ebx, dword [ebp - 0x18]
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xc4], 0x16
mov byte [eax], 1
mov eax, dword [edi]
inc dword [edi + 4]
test byte [eax + 0xcc], 2
je 0x5b1217
push edi
call fcn.00594e00
add esp, 4
push edi
call fcn.00593c10
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret