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

Disassembly:
mov edx, dword [esp + 0x10]
sub esp, 0x68
cmp edx, 0xa
jae 0x541955
mov eax, 0xffffffec
add esp, 0x68
ret
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
mov ebp, dword [eax]
lea ebx, [eax + 4]
mov eax, dword [esp + 0x80]
push edi
movzx esi, word [eax + 2]
movzx edi, word [eax]
mov dword [esp + 0x14], esi
movzx esi, word [eax + 4]
add eax, 6
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
lea esi, [eax + edi]
mov eax, dword [esp + 0x80]
add eax, 3
mov dword [esp + 0x1c], esi
shr eax, 2
add ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ecx
lea esi, [ecx + eax]
add eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x88], esi
mov edi, eax
mov esi, edx
mov dword [esp + 0x24], eax
sub esi, dword [esp + 0x18]
sub esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
sub esi, eax
sub esi, 6
cmp esi, edx
ja 0x541bc7
push eax
push dword [esp + 0x34]
lea eax, [esp + 0x70]
push eax
call fcn.005403f0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541c63
push dword [esp + 0x14]
lea eax, [esp + 0x5c]
push dword [esp + 0x20]
push eax
call fcn.005403f0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541c63
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005403f0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541c63
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, ecx
push esi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005403f0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541c63
lea eax, [esp + 0x38]
push eax
call fcn.005441c0
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x60]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x74]
push eax
call fcn.005441c0
add esp, 0x10
or esi, eax
jne 0x541ba4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff9
mov dword [esp + 0x30], eax
nop word [eax + eax]
cmp edi, eax
jae 0x541ba4
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
push esi
call fcn.00544f70
push ebp
add esi, eax
lea eax, [esp + 0x6c]
push ebx
push eax
push dword [esp + 0x2c]
call fcn.00544f70
add dword [esp + 0x30], eax
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
push dword [esp + 0xb4]
call fcn.00544f70
add dword [esp + 0xb8], eax
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
push edi
call fcn.00544f70
add esp, 0x40
add edi, eax
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
push esi
call fcn.00544f70
add esi, eax
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00544f70
add esi, eax
lea eax, [esp + 0x68]
push ebp
push ebx
push eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xb4]
push esi
call fcn.00544f70
push ebp
add esi, eax
lea eax, [esp + 0x6c]
push ebx
push eax
push edi
mov dword [esp + 0xc8], esi
call fcn.00544f70
add esp, 0x40
add edi, eax
lea eax, [esp + 0x38]
push eax
call fcn.005441c0
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x60]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x74]
push eax
call fcn.005441c0
add esp, 0x10
or esi, eax
mov eax, dword [esp + 0x30]
je 0x541ab0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
ja 0x541bc7
mov esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x20]
ja 0x541bc7
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x88], edx
jbe 0x541bd4
pop edi
pop esi
pop ebp
mov eax, 0xffffffec
pop ebx
add esp, 0x68
ret
push ebp
push ebx
push ecx
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00544d90
push ebp
push ebx
push dword [esp + 0x3c]
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00544d90
push ebp
push ebx
push dword [esp + 0x54]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0xc0]
call fcn.00544d90
push ebp
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0x80]
push eax
push edi
call fcn.00544d90
add esp, 0x50
lea eax, [esp + 0x38]
push eax
call fcn.00544090
mov edx, eax
lea eax, [esp + 0x4c]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x60]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x74]
push eax
call fcn.00544090
add esp, 0x10
mov ecx, 0xffffffec
test eax, edx
mov eax, dword [esp + 0x80]
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret