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

Disassembly:
sub esp, 0xc
mov eax, 0x56b690
mov word [esp + 2], cx
test eax, eax
mov dword [esp + 4], edx
push ebx
push esi
push edi
push ebp
jne 0x5335f5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c
call fcn.00533340
test eax, eax
jne 0x53360a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x533658
push ebp
push 0
call fcn.00533530
add esp, 8
mov esi, eax
test esi, esi
jne 0x53372b
mov eax, dword [esp + 0x34]
push ebp
mov ecx, dword [esp + 0x34]
push eax
mov edx, dword [esp + 0x34]
push ecx
push edx
mov eax, edi
push ebx
or eax, 0x1100
mov edx, dword [esp + 0x34]
push eax
mov ecx, 0x1000
call fcn.005322b0
jmp 0x53366f
mov eax, edi
mov edx, 0x1000
and eax, 0xfffffffb
xor ecx, ecx
or eax, 0x1100
push eax
call fcn.00532740
mov esi, eax
test esi, esi
jne 0x53368d
mov edx, 2
xor ecx, ecx
call fcn.00533bd0
test eax, eax
jne 0x533616
test esi, esi
je 0x533828
xor ax, ax
movzx ecx, ax
inc ax
mov dword [esi + ecx*4], 0
cmp ax, 5
jb 0x533690
xor edx, edx
lea ebx, [esi + 0x22]
mov eax, edi
mov dword [esi + 0x14], edx
and ax, 0xfffd
lea ecx, [esi + 0x24]
mov dword [esi + 0x18], edx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], 0xbead
mov word [ebx], ax
mov word [ecx], dx
mov word [esi + 0x26], 0x100
cmp word [esi + 0x28], dx
jne 0x5336e1
mov word [esi + 0x28], 0x4000
mov word [esi + 0x2a], 0x1000
mov dword [esi + 0x30], 0x40000
mov dword [esi + 0x34], 0xfffffffe
xor eax, eax
test edi, 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x280], eax
mov dword [esi + 0x278], eax
je 0x53370e
or edi, 2
test edi, 2
je 0x533752
mov dword [esi + 0x78], 0
test byte [ebx], 1
je 0x53373c
mov ecx, esi
call fcn.005330e0
jmp 0x53374b
call fcn.005333d0
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c
lea eax, [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 1
test eax, eax
je 0x53376f
mov word [ebx], di
and edi, 1
je 0x53377f
push 0
mov edx, ebp
push 1
mov ecx, esi
call fcn.00532c10
test eax, eax
jne 0x53377f
xor esi, esi
jmp 0x533828
mov edx, esi
mov ecx, esi
xor esi, esi
call fcn.00532a60
jmp 0x533828
push 0x56b40c
push 0x7df340
call fcn.00533230
add esp, 8
test eax, eax
jne 0x5337a1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c
test edi, edi
jne 0x5337ac
mov dword [esi + 0x44], 0x56b690
test byte [ebx], 1
lea eax, [esi + 0x40]
je 0x5337bb
mov ecx, esi
call fcn.00532e90
mov ecx, dword [0x56b694]
push 0x7df340
mov dword [eax], ecx
mov dword [0x56b694], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [ebx]
mov ecx, dword [esp + 0x12]
and ax, 1
push ecx
cmp ax, 1
push esi
sbb eax, eax
and eax, 0xffff1000
add eax, 0x10000
mov dword [esi + 0x2c], eax
call fcn.00533940
test eax, eax
jne 0x53380a
xor edx, edx
mov ecx, esi
xor esi, esi
call fcn.00533a20
jmp 0x533828
cmp dword [esp + 0x14], 0
je 0x533828
push 1
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
imul eax, dword [esp + 0x18]
push eax
push esi
call fcn.0052fbc0
call fcn.005333d0
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c