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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1c
mov esi, ecx
xor bl, bl
mov al, byte [esi + 0x85]
or al, 4
mov byte [esi + 0x85], al
mov eax, dword [esi + 0x41]
test eax, eax
je 0x5b3091
mov dword [0x65e798], 0
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [esi + 0x35]
test eax, eax
je 0x5b3402
mov al, byte [esi + 0x83]
and al, 1
cmp al, 1
jne 0x5b30af
mov ecx, esi
call fcn.005649ec
mov edx, dword [esi + 0x21]
mov eax, dword [edx + 0x7a]
cmp eax, 2
je 0x5b33fa
movzx eax, word [edx + 0x30]
test eax, eax
jne 0x5b30d2
movzx eax, word [edx + 0x3c]
test eax, eax
je 0x5b31dc
call fcn.0051a4b8
mov dword [esp + 0x18], eax
mov edi, dword [esi + 0x79]
cmp edi, 9
je 0x5b33f0
mov ebp, 1
lea ecx, [esp + 0xc]
push 0
call fcn.004ff2a8
mov edx, dword [0x661f10]
mov dword [esi + 0x71], edx
xor edx, edx
mov dl, byte [esi + 9]
and edx, 8
test edx, 0xfffffff8
jne 0x5b3118
test bl, bl
jne 0x5b31ca
mov edx, dword [esi + 0x21]
movzx edx, word [edx + 0x30]
test edx, edx
je 0x5b314d
push 4
push esi
push 0
push esi
push edi
push edx
mov ecx, dword [esp + 0x30]
call fcn.0051be44
mov ebp, eax
test ebp, ebp
jne 0x5b317f
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x18]
lea edi, [edx + 0x38]
push edi
call fcn.004ffee4
jmp 0x5b317f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [eax]
mov edi, dword [esi + 0x21]
movzx edi, word [edi + 0x3c]
push edi
mov ecx, eax
call dword [edx + 0x20]
mov edi, eax
test edi, edi
je 0x5b317f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
lea edx, [esp + 0xc]
push eax
push edx
mov ecx, edi
call fcn.004f7994
xor ebp, ebp
test bl, bl
je 0x5b31b6
mov edi, dword [esi + 0x2d]
mov edx, dword [edi + 0x2d]
mov edi, dword [edx + 0x29]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
xor edx, edx
mov dl, byte [eax + 0xb3]
and edx, 2
test edx, 0xfffffffe
je 0x5b31b6
mov edx, dword [edi + 0x25]
mov edi, dword [edx + 8]
mov edx, dword [edi + 0x50]
cmp edx, 2
jne 0x5b31b6
xor bl, bl
test ebp, ebp
jne 0x5b31ca
mov al, byte [esi + 0x83]
and al, 1
cmp al, 1
je 0x5b3283
lea ecx, [esp + 0xc]
call fcn.00500418
mov ecx, dword [esp + 0x18]
call fcn.0051a4f8
mov ecx, esi
call fcn.00564ba4
mov ecx, esi
call fcn.00564c14
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
test eax, 0xfffffff8
je 0x5b3233
mov eax, dword [0x65e798]
test eax, eax
je 0x5b321e
mov eax, dword [esi + 0x41]
test eax, eax
je 0x5b33b4
mov dword [eax + 0x4e], 1
mov dword [0x65e798], 0
mov eax, dword [esi + 0x21]
mov edx, dword [eax + 0x6a]
cmp edx, 1
jle 0x5b3233
push 0
mov ecx, dword [esi + 0x31]
call fcn.004ecec8
mov ecx, dword [esi + 0x41]
test ecx, ecx
je 0x5b3262
xor eax, eax
mov al, byte [esi + 0x85]
and eax, 2
and eax, 0xfffffffe
cmp eax, 4
je 0x5b3262
mov eax, dword [esi + 0x79]
cmp eax, 5
je 0x5b33c3
cmp eax, 6
je 0x5b33c3
test ecx, ecx
je 0x5b326d
mov dword [ecx + 0x14], 0
mov al, byte [esi + 0x85]
and al, 0xfb
mov byte [esi + 0x85], al
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
shr eax, 3
je 0x5b329c
mov edx, dword [esi + 0x7d]
cmp edx, 0xd
je 0x5b3333
test bl, bl
je 0x5b32aa
mov ebp, dword [esi + 0x31]
mov dl, byte [ebp]
test dl, dl
jne 0x5b32c3
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00577e88
push eax
mov ecx, esi
call fcn.004ee558
jmp 0x5b31ca
test eax, eax
je 0x5b31ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
cmp eax, 0xfffffffc
jne 0x5b31ca
xor eax, eax
mov al, byte [esi + 0x85]
and eax, 2
test eax, 0xfffffffe
je 0x5b330d
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00577e88
push eax
mov ecx, esi
call fcn.004ee558
jmp 0x5b31ca
mov eax, dword [esi + 0x21]
mov edx, dword [eax + 0x7e]
cmp edx, 2
jne 0x5b31ca
xor eax, eax
mov al, byte [esi + 0x83]
and eax, 0x20
test eax, 0xffffffe0
jne 0x5b32f4
jmp 0x5b31ca
mov ebp, dword [esi + 0x21]
mov edx, dword [ebp + 0x7e]
test edx, edx
je 0x5b329c
mov edx, dword [ebp + 0x4e]
test edx, edx
je 0x5b329c
mov eax, dword [esi + 0x79]
cmp eax, 0xa
je 0x5b336d
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00577e88
push eax
mov ecx, esi
call fcn.004ee558
jmp 0x5b31ca
mov edx, dword [esi + 0x35]
test byte [edx + 9], 1
je 0x5b339b
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x5b3383
mov al, 1
jmp 0x5b3385
xor al, al
mov edx, dword [edx + 0x17]
cmp edx, 2
jne 0x5b3391
mov dl, 1
jmp 0x5b3393
xor dl, dl
cmp al, dl
je 0x5b31ca
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00577e88
push eax
mov ecx, esi
call fcn.004ee558
jmp 0x5b31ca
mov ecx, esi
call fcn.0051ea44
mov eax, dword [esi + 0x41]
jmp 0x5b320d
mov al, byte [esi + 0x83]
and al, 1
cmp al, 1
je 0x5b33e2
add ecx, 0x24
mov edx, dword [esi + 0x31]
call fcn.004edfd0
mov ecx, dword [esi + 0x41]
jmp 0x5b3262
push 0
mov ecx, esi
call fcn.00578a34
mov ecx, dword [esi + 0x41]
jmp 0x5b33cf
mov edi, 1
jmp 0x5b30e7
mov ecx, dword [esi + 0x41]
jmp 0x5b3262
mov eax, dword [esi + 0x21]
mov eax, dword [eax + 0x4e]
test eax, eax
jle 0x5b358d
push esi
push eax
mov ecx, dword [esi + 0x25]
call fcn.004f0c48
mov dword [esi + 0x35], eax
test eax, eax
je 0x5b34ff
movzx edx, word [eax + 0xa]
shl edx, 0x15
sar edx, 0x1b
cmp edx, dword [esi + 0x79]
jne 0x5b34eb
test byte [eax + 9], 1
je 0x5b344f
mov ecx, esi
call fcn.00578af0
push eax
mov ecx, esi
call fcn.004ee558
mov bl, 1
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
test eax, 0xfffffff8
je 0x5b309c
mov eax, dword [esi + 0x79]
cmp eax, 5
je 0x5b3473
cmp eax, 6
jne 0x5b309c
mov ecx, dword [esi + 0x25]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 0x13
jne 0x5b34d9
push 0x808
mov ecx, dword [esi + 0x25]
call fcn.004ef864
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eea90
push 0x809
mov ecx, dword [esi + 0x25]
call fcn.004ef864
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eea90
push 0x80a
mov ecx, dword [esi + 0x25]
call fcn.004ef864
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eea90
jmp 0x5b309c
mov ecx, dword [esi + 0x25]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 0x1b
je 0x5b3480
jmp 0x5b309c
push 0x74f73c
mov ecx, esi
call fcn.004f0a94
mov eax, dword [esi + 0x35]
jmp 0x5b3438
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
test eax, 0xfffffff8
je 0x5b351a
push 0x74f770
mov ecx, esi
call fcn.004f0a94
lea ecx, [esp]
push 0
call fcn.004ff2a8
mov ecx, dword [esi + 0x25]
mov ebp, dword [ecx]
lea edx, [esp]
mov eax, dword [esi + 0x21]
push esi
push dword [eax + 0x4e]
push edx
call dword [ebp + 0x5c]
test eax, eax
jne 0x5b3580
mov eax, dword [esi + 0x79]
cmp eax, 1
je 0x5b356b
mov ecx, 0x74c060
push 1
push 0x1f
call fcn.004e2a04
mov ebx, eax
test ebx, ebx
je 0x5b3566
push esi
push dword [esi + 0x79]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.005030b4
jmp 0x5b3568
xor ebx, ebx
mov dword [esi + 0x35], ebx
lea eax, [esp]
push eax
mov ecx, esi
call fcn.00577e88
push eax
mov ecx, esi
call fcn.004ee558
mov bl, 1
lea ecx, [esp]
call fcn.00500418
jmp 0x5b309c
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
test eax, 0xfffffff8
jne 0x5b35a8
mov eax, dword [esi + 0x79]
cmp eax, 1
je 0x5b309c
mov ecx, 0x74c060
push 1
push 0x1f
call fcn.004e2a04
mov ebp, eax
test ebp, ebp
je 0x5b35cb
push esi
push dword [esi + 0x79]
push 0xffffffffffffffff
mov ecx, ebp
call fcn.005030b4
jmp 0x5b35cd
xor ebp, ebp
mov dword [esi + 0x35], ebp
jmp 0x5b309c