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

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x74
cmp ecx, 0xa
jae 0x5417a5
mov eax, 0xffffffec
add esp, 0x74
ret
mov edx, dword [esp + 0x7c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x88]
lea eax, [edi + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
lea ebp, [eax + 2]
movzx eax, word [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
movzx ebx, word [eax + 2]
movzx esi, word [eax]
mov dword [esp + 0x18], ebx
movzx ebx, word [eax + 4]
add eax, 6
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], esi
lea ebx, [eax + esi]
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], eax
mov esi, ecx
sub esi, dword [esp + 0x1c]
lea eax, [edx + 3]
sub esi, dword [esp + 0x18]
shr eax, 2
lea edx, [eax + edi]
lea ebx, [edx + eax]
mov dword [esp + 0x40], edx
add eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
sub esi, eax
sub esi, 6
mov dword [esp + 0x10], edx
cmp esi, ecx
ja 0x541a9e
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x7c]
push eax
call fcn.005402c0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541b4a
push dword [esp + 0x18]
lea eax, [esp + 0x68]
push dword [esp + 0x40]
push eax
call fcn.005402c0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541b4a
push dword [esp + 0x1c]
lea eax, [esp + 0x58]
push dword [esp + 0x24]
push eax
call fcn.005402c0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541b4a
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005402c0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541b4a
lea eax, [esp + 0x44]
push eax
call fcn.005475f0
mov esi, eax
lea eax, [esp + 0x58]
push eax
call fcn.005475f0
or esi, eax
lea eax, [esp + 0x6c]
push eax
call fcn.005475f0
or esi, eax
lea eax, [esp + 0x80]
push eax
call fcn.005475f0
add esp, 0x10
or esi, eax
jne 0x541a82
mov eax, dword [esp + 0x30]
add eax, 0xfffffff9
mov dword [esp + 0x3c], eax
nop
cmp ebx, eax
jae 0x541a82
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x74]
push esi
push ebp
push eax
call fcn.00548020
mov byte [edi], al
inc edi
push esi
lea eax, [esp + 0x74]
mov dword [esp + 0x98], edi
push ebp
push eax
call fcn.00548020
mov ecx, dword [esp + 0x28]
push esi
push ebp
mov byte [ecx], al
lea eax, [esp + 0x74]
inc ecx
push eax
mov dword [esp + 0x34], ecx
call fcn.00548020
mov ecx, dword [esp + 0x38]
push esi
push ebp
mov byte [ecx], al
lea eax, [esp + 0x70]
inc ecx
push eax
mov dword [esp + 0x44], ecx
call fcn.00548020
mov edx, dword [esp + 0xa4]
mov edi, esi
mov esi, dword [esp + 0xa8]
neg edi
mov ecx, esi
mov byte [ebx], al
and ecx, 0x1f
and edi, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0xb8]
movzx eax, byte [ebp + edx*2 + 1]
add esi, eax
mov al, byte [ebp + edx*2]
mov edx, dword [esp + 0x94]
mov byte [ecx], al
inc ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x98]
mov ecx, esi
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x40]
movzx eax, byte [ebp + edx*2 + 1]
add esi, eax
mov al, byte [ebp + edx*2]
mov edx, dword [esp + 0x84]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x88]
mov ecx, esi
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x44]
movzx eax, byte [ebp + edx*2 + 1]
add esi, eax
mov al, byte [ebp + edx*2]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x78]
mov ecx, esi
mov edx, dword [esp + 0x74]
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
movzx eax, byte [ebp + edx*2 + 1]
add esi, eax
mov al, byte [ebp + edx*2]
mov byte [ebx + 1], al
add ebx, 2
lea eax, [esp + 0x74]
mov dword [esp + 0x78], esi
push eax
call fcn.005475f0
mov esi, eax
lea eax, [esp + 0x88]
push eax
call fcn.005475f0
or esi, eax
lea eax, [esp + 0x9c]
push eax
call fcn.005475f0
or esi, eax
lea eax, [esp + 0xb0]
push eax
call fcn.005475f0
mov edi, dword [esp + 0xc8]
add esp, 0x40
or esi, eax
mov eax, dword [esp + 0x3c]
je 0x541900
mov eax, dword [esp + 0x40]
cmp edi, eax
ja 0x541a9e
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x10], ecx
ja 0x541a9e
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x14], ecx
jbe 0x541aab
pop edi
pop esi
pop ebp
mov eax, 0xffffffec
pop ebx
add esp, 0x74
ret
mov esi, dword [esp + 0x24]
push esi
push ebp
push eax
lea eax, [esp + 0x80]
push eax
push edi
call fcn.00541140
push esi
push ebp
push dword [esp + 0x44]
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x34]
call fcn.00541140
push esi
push ebp
push dword [esp + 0x5c]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x4c]
call fcn.00541140
push esi
push ebp
push dword [esp + 0x74]
lea eax, [esp + 0x8c]
push eax
push ebx
call fcn.00541140
add esp, 0x50
lea eax, [esp + 0x44]
push eax
call fcn.0053ac50
mov edx, eax
lea eax, [esp + 0x58]
push eax
call fcn.0053ac50
and edx, eax
lea eax, [esp + 0x6c]
push eax
call fcn.0053ac50
and edx, eax
lea eax, [esp + 0x80]
push eax
call fcn.0053ac50
add esp, 0x10
mov ecx, 0xffffffec
test eax, edx
mov eax, dword [esp + 0x8c]
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret