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

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x84]
cmp esi, 0xa
jae 0x54523a
mov eax, 0xffffffec
pop esi
add esp, 0x70
ret
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
push edi
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
movzx edi, word [eax]
lea ebp, [eax + 2]
movzx eax, word [ecx]
mov dword [esp + 0x30], eax
movzx eax, word [ecx + 2]
mov dword [esp + 0x18], eax
movzx eax, word [ecx + 4]
mov dword [esp + 0x1c], eax
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x30]
sub esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x18]
mov dword [esp + 0x38], eax
sub esi, ecx
add eax, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
sub esi, 6
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [ebx + 3]
shr eax, 2
add edx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], edx
lea ebx, [edx + eax]
add eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], ebx
mov ebx, eax
mov dword [esp + 0x30], eax
cmp esi, dword [esp + 0x90]
ja 0x545536
push ecx
push dword [esp + 0x3c]
lea eax, [esp + 0x78]
push eax
call fcn.005440b0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5455d5
push dword [esp + 0x18]
lea eax, [esp + 0x64]
push dword [esp + 0x24]
push eax
call fcn.005440b0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5455d5
push dword [esp + 0x1c]
lea eax, [esp + 0x54]
push dword [esp + 0x28]
push eax
call fcn.005440b0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5455d5
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005440b0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5455d5
lea eax, [esp + 0x40]
push eax
call fcn.005441c0
mov esi, eax
lea eax, [esp + 0x54]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x68]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x7c]
push eax
call fcn.005441c0
add esp, 0x10
or esi, eax
jne 0x545513
mov eax, dword [esp + 0x34]
add eax, 0xfffffff9
mov dword [esp + 0x38], eax
cmp ebx, eax
jae 0x545513
push edi
lea eax, [esp + 0x74]
push ebp
push eax
call fcn.005412d0
mov ecx, dword [esp + 0x90]
push edi
push ebp
mov byte [ecx], al
lea eax, [esp + 0x74]
inc ecx
push eax
mov dword [esp + 0x9c], ecx
call fcn.005412d0
mov ecx, dword [esp + 0x2c]
push edi
push ebp
mov byte [ecx], al
lea eax, [esp + 0x70]
inc ecx
push eax
mov dword [esp + 0x38], ecx
call fcn.005412d0
mov ecx, dword [esp + 0x34]
push edi
push ebp
mov byte [ecx], al
lea eax, [esp + 0x6c]
inc ecx
push eax
mov dword [esp + 0x40], ecx
call fcn.005412d0
mov esi, dword [esp + 0xa4]
neg edi
mov edx, dword [esp + 0xa0]
mov ecx, esi
and ecx, 0x1f
mov byte [ebx], al
shl edx, cl
and edi, 0x1f
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0xb4]
movzx eax, byte [ebp + edx*2 + 1]
add esi, eax
mov al, byte [ebp + edx*2]
mov edx, dword [esp + 0x90]
mov byte [ecx], al
inc ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0x94]
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 edx, dword [esp + 0x80]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x84]
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 byte [ecx], al
inc ecx
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x70]
mov ecx, esi
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 + 0x70]
mov dword [esp + 0x74], esi
push eax
call fcn.005441c0
mov esi, eax
lea eax, [esp + 0x84]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0x98]
push eax
call fcn.005441c0
or esi, eax
lea eax, [esp + 0xac]
push eax
call fcn.005441c0
mov edi, dword [esp + 0x68]
add esp, 0x40
or esi, eax
mov eax, dword [esp + 0x38]
je 0x545393
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x545536
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x2c]
ja 0x545536
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x10], edx
jbe 0x545543
pop edi
pop ebp
pop ebx
mov eax, 0xffffffec
pop esi
add esp, 0x70
ret
push edi
push ebp
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.00544b90
push edi
push ebp
push dword [esp + 0x48]
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00544b90
push edi
push ebp
push dword [esp + 0x60]
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x48]
call fcn.00544b90
push edi
push ebp
push dword [esp + 0x78]
lea eax, [esp + 0x88]
push eax
push ebx
call fcn.00544b90
add esp, 0x50
lea eax, [esp + 0x40]
push eax
call fcn.00544090
mov edx, eax
lea eax, [esp + 0x54]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x68]
push eax
call fcn.00544090
and edx, eax
lea eax, [esp + 0x7c]
push eax
call fcn.00544090
add esp, 0x10
mov ecx, 0xffffffec
test eax, edx
mov eax, dword [esp + 0x88]
cmove eax, ecx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret