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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5321c0]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
sub eax, 5
push ebx
push esi
mov esi, edx
push edi
mov ebx, ecx
mov dword [esp + 0x3c], esi
je 0x539fb4
sub eax, 0xa
je 0x539f92
sub eax, 5
je 0x539f5c
sub eax, 0x6f
je 0x539fb0
sub eax, 0x7d
je 0x539f23
sub eax, 0x101
jne 0x539fdc
cmp dword [ebp + 0xc], 1
jne 0x539fdc
movzx eax, word [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x1039
push dword [ebx + 4]
call dword [fcn.004f64e8]
cmp dword [esp + 0x34], 0
jl 0x539fdc
cmp dword [esp + 0x38], 1
jne 0x539fdc
lea edi, [ebx + 0xf4]
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
mov esi, dword [edi + 4]
je 0x539e1c
cmp dword [esp + 0x10], edi
je 0x539e21
call 0x5b9e21
cmp dword [esp + 0x14], esi
je 0x539fdc
lea esi, [esp + 0x10]
call fcn.0053a8e2
push dword [esp + 0x34]
mov esi, eax
push ebx
call fcn.0053a89d
cmp eax, dword [esi]
lea esi, [esp + 0x10]
je 0x539e4f
call 0x5a4a87
jmp 0x539e0c
call fcn.0053a8e2
movzx ax, byte [eax + 4]
lea esi, [esp + 0x10]
movzx edi, ax
call fcn.0053a8e2
movzx ax, byte [eax + 5]
movzx eax, ax
test ax, ax
mov dword [esp + 0x10], eax
je 0x539fdc
mov esi, dword [fcn.004f64e8]
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x24], 1
push 0x1038
push dword [ebx + 4]
call esi
mov eax, dword [esp + 0x18]
movsx ecx, di
shl ecx, 4
add eax, ecx
lea ecx, [eax + 3]
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
jl 0x539fdc
add eax, 0xd
cmp dword [esp + 0x28], eax
jg 0x539fdc
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 5]
cmp dword [esp + 0x2c], ecx
jl 0x539fdc
add eax, 0xf
cmp dword [esp + 0x2c], eax
jg 0x539fdc
push dword [ebx + 4]
call dword [0x4f6430]
push dword [ebx + 4]
mov edi, eax
call dword [fcn.004f6558]
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
movzx ecx, di
or ecx, 0x640000
push ecx
push 0x111
push eax
call esi
jmp 0x539fdc
cmp dword [ebp + 0xc], 0x2e
mov eax, dword [ebx]
jne 0x539f33
call dword [eax + 0xc]
jmp 0x539fdc
cmp dword [ebp + 0xc], 0xd
jne 0x539f41
call dword [eax + 0x10]
jmp 0x539fdc
call dword [eax + 0x1c]
test eax, eax
je 0x539fb0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100
push eax
call dword [fcn.004f6470]
jmp 0x539fb0
push dword [ebx + 0x130]
mov esi, dword [fcn.004f653c]
call esi
test eax, eax
je 0x539fb0
push dword [ebx + 0x1a0]
call esi
test eax, eax
je 0x539fb0
lea eax, [ebx + 0x12c]
call fcn.0054fec2
lea eax, [ebx + 0x19c]
call fcn.0054fec2
jmp 0x539fb0
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x4f652c]
push esi
call fcn.0053a00c
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x4f64f0]
xor eax, eax
jmp 0x539ff5
lea eax, [esp + 0x18]
push eax
push esi
call dword [fcn.004f6490]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [ebx + 0x114], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [ebx + 0x118], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x48]
push dword [ebx + 0xdc]
call dword [0x4f656c]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call 0x5b93f0
mov esp, ebp
pop ebp
ret 0xc