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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x104], esi
mov eax, dword [edi + 0x4c]
mov ebx, dword [edi + 0xc0]
add ebx, 4
mov dword [ebp - 0x108], ebx
mov ecx, dword [eax]
mov dword [ebp - 0x100], ecx
mov eax, dword [ecx + 0x10]
cmp eax, 1
je 0x5b3da5
cmp eax, 5
je 0x5b3da5
cmp eax, 7
je 0x5b3da5
cmp eax, 9
je 0x5b3d44
cmp eax, 0xa
je 0x5b3d44
cmp eax, 6
je 0x5b38a1
cmp eax, 8
jne 0x5b38b5
mov word [ebx], si
mov esi, 2
mov eax, dword [ecx + 0x10]
add ebx, 2
mov dword [ebp - 0xfc], esi
cmp eax, 2
je 0x5b38c3
cmp eax, 6
jne 0x5b3975
mov eax, dword [edi]
cmp dword [eax + 0x84], 0
je 0x5b3d2e
cmp dword [eax + 0x90], 0
je 0x5b3d2e
add eax, 0x7c
push eax
mov eax, dword [edi + 0x3c]
add eax, 0xc
push eax
call fcn.0059f490
add esp, 8
test eax, eax
jne 0x5b3daa
mov eax, dword [edi]
add eax, 0x88
push eax
mov eax, dword [edi + 0x3c]
add eax, 0x18
push eax
call fcn.0059f490
add esp, 8
test eax, eax
jne 0x5b3daa
mov eax, dword [edi]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0x110]
push eax
mov eax, dword [edi + 0x3c]
add eax, 0xc
push ebx
push eax
call fcn.0059faf0
add esp, 4
push eax
mov eax, dword [edi + 0x3c]
add eax, 8
push eax
call fcn.005a94f0
add esp, 0x18
test eax, eax
jne 0x5b3daa
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], ebx
add ebx, ecx
add esi, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0xfc], esi
mov eax, dword [eax + 0x10]
cmp eax, 3
je 0x5b3988
cmp eax, 4
je 0x5b3988
cmp eax, 8
jne 0x5b3a4f
mov eax, dword [edi]
mov esi, dword [eax + 0x78]
mov edx, dword [esi]
test edx, edx
je 0x5b3d18
mov edi, dword [edi + 0x3c]
nop word [eax + eax]
mov ecx, dword [edi + 0x1b8]
mov eax, dword [ecx]
test eax, eax
je 0x5b39be
nop dword [eax]
cmp dword [eax], edx
je 0x5b39c8
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jne 0x5b39b0
mov edx, dword [esi + 4]
add esi, 4
test edx, edx
jne 0x5b39a0
mov eax, dword [ecx]
mov edi, dword [ebp - 0x10c]
test eax, eax
je 0x5b3d18
push dword [eax]
mov eax, dword [edi + 0x3c]
add eax, 0x84
push eax
call fcn.005b9d20
add esp, 8
test eax, eax
jne 0x5b3daa
mov eax, dword [edi]
mov esi, dword [ebp - 0xfc]
push dword [eax + 0x1c]
push dword [eax + 0x18]
mov eax, 0x4000
sub eax, esi
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
mov eax, dword [edi + 0x3c]
add eax, 0x84
push eax
call fcn.005aa020
add esp, 0x18
test eax, eax
jne 0x5b3daa
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], ebx
add ebx, ecx
add esi, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0xfc], esi
mov eax, dword [eax + 0x10]
cmp eax, 2
je 0x5b3a62
cmp eax, 3
je 0x5b3a62
cmp eax, 4
jne 0x5b3cdf
cmp dword [edi + 0x14], 3
lea esi, [edi + 0x3c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], esi
jne 0x5b3aa9
mov eax, dword [esi]
movzx eax, byte [eax]
push eax
call fcn.00594bb0
add esp, 4
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x5b3abe
pop edi
pop esi
mov eax, 0xffff9400
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x114], esi
cmp eax, 4
jne 0x5b3b5a
mov dword [ebp - 0x100], eax
push eax
call fcn.0059aeb0
mov esi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.0059af20
push 0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x10c], 0
push esi
push eax
call fcn.0059b000
add esp, 0x14
test eax, eax
jne 0x5b3daa
lea eax, [ebp - 0x128]
push eax
call fcn.0059b0f0
mov esi, dword [ebp - 0x114]
push 0x40
mov eax, dword [esi]
add eax, 0x41c
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0059b120
push dword [ebp - 0x104]
lea eax, [ebp - 0x128]
push dword [ebp - 0x108]
push eax
call fcn.0059b120
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0059b150
lea eax, [ebp - 0x128]
push eax
call fcn.0059af40
add esp, 0x28
jmp 0x5b3c38
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x100], 0
push eax
call fcn.005aa300
lea eax, [ebp - 0xf8]
push eax
call fcn.005ab120
lea eax, [ebp - 0x9c]
push eax
call fcn.005aa380
mov eax, dword [esi]
add eax, 0x41c
push 0x40
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005aa3c0
push dword [ebp - 0x104]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x108]
push eax
call fcn.005aa3c0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005aa470
lea eax, [ebp - 0xf8]
push eax
call fcn.005ab180
mov eax, dword [esi]
add eax, 0x41c
push 0x40
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.005ab1c0
push dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
push dword [ebp - 0x108]
push eax
call fcn.005ab1c0
add esp, 0x48
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.005ab270
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x10c], 0x24
push eax
call fcn.005aa320
lea eax, [ebp - 0xf8]
push eax
call fcn.005ab140
add esp, 0x10
push edi
call fcn.005af8f0
add esp, 4
test eax, eax
jne 0x5b3c5b
pop edi
pop esi
mov eax, 0xffff8a00
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 3
jne 0x5b3c87
mov eax, dword [esi]
push edi
mov al, byte [eax]
mov byte [ebx], al
call fcn.005af8f0
push eax
call fcn.00594b50
mov esi, dword [ebp - 0xfc]
add esp, 8
mov byte [ebx + 1], al
add ebx, 2
add esi, 2
jmp 0x5b3c8d
mov esi, dword [ebp - 0xfc]
mov eax, dword [edi]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebx + 2]
push eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x100]
push edi
call fcn.005af8f0
add esp, 4
push eax
call fcn.0059ba50
add esp, 0x20
test eax, eax
jne 0x5b3daa
mov ecx, dword [ebp - 0x118]
add esi, 2
mov eax, ecx
shr eax, 8
add esi, ecx
mov byte [ebx], al
mov byte [ebx + 1], cl
lea eax, [esi + 4]
mov dword [edi + 0xc4], 0x16
mov dword [edi + 0xc8], eax
mov eax, dword [edi + 0xc0]
push edi
mov byte [eax], 0xc
inc dword [edi + 4]
call fcn.00593c10
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffff8c80
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffff8f00
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5b3d55
mov eax, dword [eax + 0x1c4]
test eax, eax
jne 0x5b3d5e
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x5b3d61
mov eax, dword [eax + 4]
push 2
push eax
call fcn.0059b8b0
add esp, 8
test eax, eax
je 0x5b3da5
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x5b3d81
mov eax, dword [ecx + 0x1c4]
test eax, eax
jne 0x5b3d8e
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x5b3d8e
xor edx, edx
jmp 0x5b3d91
mov edx, dword [eax + 4]
push 0
push dword [edx + 4]
lea eax, [ecx + 0x84]
push eax
call fcn.005aa0f0
add esp, 0xc
inc dword [edi + 4]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret