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

Disassembly:
sub esp, 0x84
mov eax, dword [0x5e1040]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x90]
add eax, ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
mov ebp, ebx
mov dword [esp + 0x34], eax
push edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x4c], ebx
lea edx, [ecx + esi]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], esi
mov ebx, dword [edi + 0x54b8]
mov eax, dword [edi + 0x54c8]
add eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
lea eax, [edi + 0xc08]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x804]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x5414]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x5418]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x541c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x5454]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
cmp ecx, 1
jae 0x5437cf
mov eax, 0xffffffb8
jmp 0x543b3b
movzx ebx, byte [esi]
inc esi
test ebx, ebx
jne 0x5437e3
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 1]
jmp 0x5438dd
cmp ebx, 0x7f
jbe 0x543814
cmp ebx, 0xff
jne 0x543804
lea eax, [esi + 2]
cmp eax, edx
ja 0x5437c5
movzx ebx, word [esi]
mov esi, eax
add ebx, 0x7f00
jmp 0x543814
cmp esi, edx
jae 0x5437c5
movzx eax, byte [esi]
add ebx, 0xffffff80
shl ebx, 8
add ebx, eax
inc esi
lea eax, [esi + 4]
cmp eax, edx
ja 0x5437c5
push dword [esp + 0x14]
movzx ecx, byte [esi]
mov eax, edx
push 6
push 0x5a2a60
inc esi
mov dword [esp + 0x28], ecx
sub eax, esi
push eax
push esi
push 9
mov eax, ecx
push 0x23
shr eax, 6
push eax
push edi
call fcn.0053ef40
add esp, 0x24
cmp eax, 0xffffff88
ja 0x543b02
push dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x1c]
push 5
push 0x5a2bec
sub eax, esi
push eax
mov eax, dword [esp + 0x2c]
push esi
push 8
shr eax, 4
and eax, 3
push 0x1c
push eax
lea eax, [edi + 0x804]
push eax
call fcn.0053ef40
add esp, 0x24
cmp eax, 0xffffff88
ja 0x543b02
push dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x1c]
push 6
push 0x5a2b80
sub eax, esi
push eax
mov eax, dword [esp + 0x2c]
push esi
push 9
shr eax, 2
and eax, 3
push 0x34
push eax
lea eax, [edi + 0xc08]
push eax
call fcn.0053ef40
add esp, 0x24
cmp eax, 0xffffff88
ja 0x543b02
mov ecx, dword [esp + 0x20]
sub eax, ecx
add eax, esi
cmp eax, 0xffffff88
ja 0x543b3b
mov edx, dword [esp + 0x18]
add ecx, eax
test ebx, ebx
je 0x543b09
mov dword [edi + 0x5454], 1
sub edx, ecx
mov eax, dword [edi + 0x5424]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0x5428]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x542c]
push edx
mov dword [esp + 0x90], eax
lea eax, [esp + 0x60]
push ecx
push eax
call fcn.005408f0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x543b02
mov edx, dword [esp + 0x60]
mov ecx, edx
movzx esi, word [edi]
and ecx, 0x1f
mov eax, dword [esp + 0x5c]
or edi, 0xffffffff
shl eax, cl
add edx, esi
mov ecx, edi
shr eax, 1
sub ecx, esi
mov dword [esp + 0x60], edx
and ecx, 0x1f
shr eax, cl
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x5c]
push eax
call fcn.00538aa0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
add eax, 4
mov dword [esp + 0x74], eax
mov ecx, edx
mov eax, dword [esp + 0x28]
and ecx, 0x1f
movzx esi, word [eax]
mov eax, dword [esp + 0x60]
add edx, esi
shl eax, cl
mov ecx, edi
sub ecx, esi
shr eax, 1
and ecx, 0x1f
mov dword [esp + 0x64], edx
shr eax, cl
mov dword [esp + 0x78], eax
lea eax, [esp + 0x60]
push eax
call fcn.00538aa0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
add eax, 4
mov dword [esp + 0x80], eax
mov ecx, edx
mov eax, dword [esp + 0x30]
and ecx, 0x1f
movzx esi, word [eax]
mov eax, dword [esp + 0x64]
sub edi, esi
shl eax, cl
and edi, 0x1f
shr eax, 1
mov ecx, edi
shr eax, cl
add edx, esi
mov dword [esp + 0x84], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x6c], edx
call fcn.00538aa0
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, 4
mov dword [esp + 0x80], eax
nop dword [eax]
mov esi, dword [esp + 0x60]
cmp esi, 0x20
jbe 0x543a10
mov edi, 3
jmp 0x543a6c
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea eax, [ebp + 4]
cmp edx, eax
jb 0x543a2d
mov eax, esi
and esi, 7
shr eax, 3
sub edx, eax
xor edi, edi
jmp 0x543a5a
cmp edx, ebp
jne 0x543a3b
cmp esi, 0x20
sbb edi, edi
add edi, 2
jmp 0x543a68
mov eax, esi
mov ecx, edx
shr eax, 3
xor edi, edi
sub ecx, eax
cmp ecx, ebp
jae 0x543a53
mov eax, edx
mov edi, 1
sub eax, ebp
sub edx, eax
imul eax, eax, 0xfffffff8
add esi, eax
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edx
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x543ad1
cmp edi, 2
ja 0x543b02
lea eax, [esp + 0x5c]
dec ebx
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00542dc0
add esp, 8
lea ecx, [esp + 0x30]
movq xmm0, qword [eax]
push dword [esp + 0x3c]
mov eax, dword [eax + 8]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x40]
push ecx
sub esp, 0xc
mov ecx, esp
push dword [esp + 0x58]
movq qword [ecx], xmm0
push ebp
mov dword [ecx + 8], eax
call fcn.00543bc0
add esp, 0x28
cmp eax, 0xffffff88
ja 0x543b3b
add ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x543a00
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x84]
mov dword [ecx + 0x5424], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 0x5428], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 0x542c], eax
mov eax, dword [esp + 0x30]
jmp 0x543b0d
mov eax, 0xffffffec
jmp 0x543b3b
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ebx, eax
sub ecx, ebp
cmp ebx, ecx
jbe 0x543b24
mov eax, 0xffffffba
jmp 0x543b3b
test ebx, ebx
je 0x543b35
push ebx
push eax
push ebp
call fcn.00547de0
add esp, 0xc
add ebp, ebx
sub ebp, dword [esp + 0x4c]
mov eax, ebp
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004224b5
add esp, 0x84
ret