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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x646384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x84]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x44], eax
mov edi, dword [ecx + 0x54]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x64], edi
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
or eax, 0x2000
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
call fcn.0053e350
add esp, 0xc
test eax, eax
jne 0x5490e6
mov ecx, dword [ebp - 0x6c]
mov al, byte [ecx + 8]
mov byte [ebx + 0x88], al
test al, al
je 0x54891d
movups xmm0, xmmword [ecx + 0xc]
lea esi, [ebx + 0x9c]
movups xmmword [ebx + 0x8c], xmm0
mov eax, dword [ecx + 0x1c]
movups xmm0, xmmword [ebx + 0x8c]
mov dword [esi], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0053eae0
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00541950
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov eax, dword [edi + 0x48]
mov ecx, dword [ebp + 0x18]
cmp eax, 0x636f6d70
je 0x548db1
cmp eax, 0x6f75746c
je 0x54893f
mov eax, 7
jmp 0x548c09
cmp byte [ebx + 0x88], 0
lea eax, [edi + 0x6c]
mov dword [ebp - 0x1c], eax
je 0x548968
push dword [ebx + 0xa0]
push dword [ebx + 0x9c]
push eax
call fcn.0053ff10
add esp, 0xc
lea eax, [edi + 0x6c]
jmp 0x54896b
mov dword [ebp - 0x1c], eax
movsx edx, word [edi + 0x6e]
cmp edx, 0xfffffffc
je 0x548993
movsx ecx, word [esi + 0x3a]
movsx eax, word [esi + 0x16]
add ecx, edx
add eax, 4
add eax, ecx
cmp eax, dword [esi + 4]
ja 0x54898d
mov eax, dword [ebp - 0x1c]
jmp 0x548998
movzx eax, word [edi + 0x6c]
jmp 0x5489c9
mov edx, 0xfffffffc
mov dword [ebp - 0x24], eax
movzx eax, word [eax]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
test ax, ax
je 0x5489f0
mov ebx, dword [ebp - 0x24]
movsx eax, word [esi + 0x14]
movsx ecx, word [esi + 0x38]
add ecx, eax
movzx eax, word [ebx]
mov ebx, dword [ebp - 0x60]
cwde
add ecx, eax
cmp ecx, dword [esi + 8]
jbe 0x5489f0
mov eax, dword [ebp - 0x3c]
movzx eax, ax
cwde
push eax
lea eax, [edx + 4]
push eax
push esi
call fcn.0053dce0
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
je 0x5489f7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553ba
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x40], 0
movsx eax, word [edi + 0x6e]
shl eax, 3
push eax
push dword [edi + 0x70]
push dword [esi + 0x3c]
call fcn.00511dc0
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax]
add eax, eax
push eax
push dword [edi + 0x78]
push dword [esi + 0x44]
call fcn.00511dc0
movsx eax, word [edi + 0x6e]
push eax
push dword [edi + 0x74]
push dword [esi + 0x40]
call fcn.00511dc0
movzx eax, word [edi + 0x6e]
add esp, 0x24
mov word [esi + 0x3a], ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov word [esi + 0x38], ax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0xc]
add eax, dword [ebp - 0x48]
mov dword [ebx + 0xac], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0xb0], eax
cmp word [edi + 0x6e], 0
je 0x548c03
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x548ac4
push edx
lea ecx, [esi + 0x38]
push ecx
lea ecx, [ebx + 0xc]
push ecx
call eax
add esp, 0xc
lea ecx, [ebx + 0xc]
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x14], 1
je 0x548bb0
mov edx, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x38]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, edx
mov dword [ebp - 0x28], eax
cmp ecx, 1
jle 0x548b93
test byte [ebx + 0x70], 4
jne 0x548b93
mov esi, dword [edx + 4]
mov ecx, dword [ebx + 0xac]
sub ecx, dword [eax - 0x2c]
mov edx, dword [edx + 8]
mov eax, dword [eax - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, edx
add eax, dword [ebp - 0x1c]
sub ecx, esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x24], 0x18
lea esi, [ecx - 8]
cmovge esi, ecx
cmp dword [ebp - 0x1c], 0x18
lea ecx, [eax + 8]
mov dword [ebp - 0x48], esi
cmovge ecx, eax
mov dword [ebp - 0x50], ecx
add ecx, 0x20
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
and eax, 0xffffffc0
mov dword [ebp - 0x3c], ecx
mov dword [ebx + 0xac], ecx
mov ecx, eax
mov dword [ebx + 0xa4], eax
cmp eax, edx
jl 0x548b5e
cmp dword [ebp - 0x24], 0
jle 0x548b5e
lea ecx, [eax - 0x40]
mov dword [ebx + 0xa4], ecx
mov esi, dword [ebp - 0x28]
mov eax, ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [esi - 0x28]
mov esi, dword [ebp - 0x20]
jg 0x548b7f
cmp dword [ebp - 0x1c], 0
jle 0x548b7f
lea eax, [edx + 0x40]
mov dword [ebx + 0xac], eax
mov eax, ecx
sub eax, dword [ebp - 0x48]
mov dword [edi + 0x90], eax
mov eax, dword [ebx + 0xac]
sub eax, dword [ebp - 0x50]
jmp 0x548bf4
mov edx, dword [ebx + 0xa4]
mov esi, dword [ebx + 0xac]
lea ecx, [edx + 0x20]
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
mov dword [ebx + 0xa4], ecx
jmp 0x548bd8
mov ecx, dword [ecx + 0x70]
mov edx, dword [ebx + 0xa4]
add ecx, 0x20
mov esi, dword [ebx + 0xac]
add ecx, edx
and ecx, 0xffffffc0
mov dword [ebx + 0xa4], ecx
mov eax, dword [ebx + 0x80]
add eax, 0x20
add eax, esi
and eax, 0xffffffc0
sub ecx, edx
mov dword [ebx + 0xac], eax
mov dword [edi + 0x90], ecx
mov eax, dword [ebx + 0xac]
sub eax, esi
mov esi, dword [ebp - 0x20]
push esi
mov dword [edi + 0x94], eax
call fcn.0053db50
add esp, 4
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x40]
test ecx, ecx
jne 0x5490e6
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x24]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
cmp byte [ebx + 0x88], 0
lea edi, [esi + 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
je 0x548caa
lea esi, [ebx + 0x8c]
push esi
push edi
call fcn.0053fde0
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00541950
add esp, 0x10
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x548cc2
push 0
neg eax
push eax
push edi
call fcn.0053ff10
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0053fc00
mov ecx, dword [ebp - 0xc]
add esp, 8
mov edi, dword [ebp - 0x14]
add ecx, 0x3f
mov edx, dword [ebp - 8]
and edi, 0xffffffc0
mov eax, dword [ebp - 0x64]
and ecx, 0xffffffc0
mov esi, dword [ebp - 0x10]
add edx, 0x3f
and edx, 0xffffffc0
mov dword [ebp - 0xc], ecx
sub ecx, edi
mov dword [ebp - 0x14], edi
mov dword [eax + 0x18], ecx
and esi, 0xffffffc0
mov eax, edx
mov dword [ebp - 0x10], esi
sub eax, esi
mov dword [ebp - 8], edx
mov esi, dword [ebp - 0x64]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x38]
add eax, edi
mov dword [esi + 0x20], edi
mov edi, dword [ebp - 0x44]
and eax, 0xffffffc0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [esi + 0x24], edx
and eax, 0xffffffc0
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x14], 1
je 0x549038
mov eax, dword [esi + 4]
test byte [eax + 8], 4
jne 0x548d66
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 4]
jae 0x549038
mov eax, dword [eax + 8]
cmp byte [ecx + eax], 0
jge 0x549038
cmp byte [edi + 0x20], 0
je 0x549038
mov eax, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
jmp 0x54904a
mov eax, dword [edi + 0x80]
movsx ecx, word [esi + 0x16]
push eax
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], ecx
call fcn.0053de50
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x5490e6
mov eax, dword [ebp - 0x24]
shl eax, 5
push eax
push dword [edi + 0x84]
push dword [esi + 0x58]
call fcn.00511dc0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x54], eax
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x548c03
mov edx, dword [ebp + 0x18]
inc edx
shl ecx, 5
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [esi + 0x34]
add eax, ecx
mov ecx, dword [ebx + 0xa4]
push edx
push dword [ebp + 0x14]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebx + 0xa8]
push dword [eax]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebx + 0xac]
push dword [ebp - 0x68]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebx + 0xb0]
mov dword [ebp - 0x34], ecx
movsx ecx, word [esi + 0x16]
push ebx
mov dword [ebp - 0x1c], ecx
call fcn.00548870
add esp, 0x14
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x5490e6
mov ecx, dword [ebp - 0x50]
add ecx, dword [esi + 0x34]
mov dword [ebp - 0x28], ecx
movzx eax, word [ecx + 4]
mov edx, eax
mov dword [ebp - 0x5c], edx
test eax, 0x200
jne 0x548ea6
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0xac], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0xb0], eax
movzx eax, word [ecx + 4]
mov dword [ebp - 0x5c], eax
jmp 0x548ea9
mov eax, dword [ebp - 0x5c]
movsx edx, word [esi + 0x16]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
movzx edx, ax
test al, 0xc8
je 0x548f01
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x1c]
lea esi, [eax + edx*8]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
movzx edx, dx
lea eax, [esi + eax*8]
mov dword [ebp - 0x34], eax
cmp esi, eax
jae 0x548efe
lea ebx, [ecx + 0x10]
mov edi, eax
nop dword [eax + eax]
push ebx
push esi
call fcn.00541950
add esi, 8
add esp, 8
cmp esi, edi
jb 0x548ee0
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
movzx edx, word [ecx + 4]
mov esi, dword [ebp - 0x20]
test dl, 2
jne 0x548f4b
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x48]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x1c]
jae 0x549022
cmp edx, dword [ebp - 0x4c]
jae 0x549022
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
add eax, edx
add eax, dword [ebp - 0x48]
mov edx, dword [ecx + ebx*8]
mov ebx, dword [ecx + ebx*8 + 4]
sub edx, dword [ecx + eax*8]
sub ebx, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x60]
jmp 0x548fca
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x54]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x54]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea edx, [esi + 0x20]
mov esi, dword [ebp - 0x20]
add eax, 0x20
add eax, dword [ebx + 0x1c]
and edx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebp - 0x28], eax
movups xmm0, xmmword [esi + 0x14]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x28]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
psrldq xmm0, 4
movd eax, xmm0
push edx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ff10
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
inc eax
add ecx, 0x20
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
cmp eax, dword [ebp - 0x24]
jae 0x548c03
mov edx, dword [ebp - 0x30]
jmp 0x548e13
pop edi
pop esi
mov eax, 0x15
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553ba
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x28], 0
je 0x54904d
mov eax, dword [ebx + 0xac]
sub eax, dword [ebx + 0xa4]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x28]
mov ebx, dword [ebp - 0x6c]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x58]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x34], eax
push dword [ebx]
call fcn.0053e240
push dword [ebp - 0x20]
push dword [ebx]
call fcn.0053dee0
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x5490e4
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0x14]
mov word [esi + 0x6c], cx
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0x16]
mov word [esi + 0x6e], cx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x70], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x74], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
mov dword [esi + 0x48], 0x6f75746c
mov eax, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004553ba
mov esp, ebp
pop ebp
ret