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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x6a4108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x84]
push edi
mov edi, dword [ecx + 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x9c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
or eax, 0x2000
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x68], ebx
push ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x58], edi
call fcn.00525d20
add esp, 0xc
test eax, eax
jne 0x561a79
mov ecx, dword [ebp - 0x60]
mov al, byte [ecx + 8]
mov byte [ebx + 0x88], al
test al, al
je 0x5612da
movq xmm0, qword [ecx + 0xc]
movq qword [ebx + 0x8c], xmm0
movq xmm0, qword [ecx + 0x14]
movq qword [ebx + 0x94], xmm0
mov eax, dword [ecx + 0x1c]
movq xmm0, qword [ebx + 0x8c]
lea esi, [ebx + 0x9c]
movq qword [ebp - 0x14], xmm0
movq xmm0, qword [ebx + 0x94]
mov dword [esi], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
push eax
movq qword [ebp - 0xc], xmm0
call fcn.005261f0
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00529320
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [edi + 0x48]
cmp eax, 0x636f6d70
je 0x561760
cmp eax, 0x6f75746c
je 0x5612f9
mov eax, 7
jmp 0x5615aa
cmp byte [ebx + 0x88], 0
je 0x56131a
push dword [ebx + 0xa0]
lea eax, [edi + 0x6c]
push dword [ebx + 0x9c]
push eax
call fcn.005279e0
add esp, 0xc
movsx edx, word [edi + 0x6e]
lea eax, [edx + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x56133c
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 0x561359
movzx edx, word [edi + 0x6c]
test dx, dx
je 0x561382
movsx eax, word [esi + 0x14]
movsx ecx, word [esi + 0x38]
add ecx, eax
movsx eax, dx
add ecx, eax
cmp ecx, dword [esi + 8]
jbe 0x561382
movsx eax, word [edi + 0x6c]
push eax
push dword [ebp - 0x3c]
push esi
call fcn.005255f0
add esp, 0xc
mov dword [ebp - 0x44], eax
test eax, eax
je 0x561389
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7124
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x44], 0
movsx eax, word [edi + 0x6e]
shl eax, 3
push eax
push dword [edi + 0x70]
push dword [esi + 0x3c]
call fcn.005c7580
movsx eax, word [edi + 0x6c]
add eax, eax
push eax
push dword [edi + 0x78]
push dword [esi + 0x44]
call fcn.005c7580
movsx eax, word [edi + 0x6e]
push eax
push dword [edi + 0x74]
push dword [esi + 0x40]
call fcn.005c7580
movzx eax, word [edi + 0x6e]
mov word [esi + 0x3a], ax
movzx eax, word [edi + 0x6c]
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 - 0x38], eax
mov eax, dword [edi + 0x28]
add esp, 0x24
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
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 - 0x20], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x20]
lea ecx, [ebx + 0xc]
mov dword [ebx + 0xac], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0xb0], eax
cmp word [edi + 0x6e], 0
je 0x5615a7
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov eax, dword [eax*4 + 0x63532c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x56145c
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 - 0x5c]
cmp dword [eax + 0x14], 1
je 0x561551
mov edx, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x38]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0xffffffd0
add eax, edx
mov dword [ebp - 0x48], eax
cmp ecx, 1
jle 0x561518
test byte [ebx + 0x70], 4
jne 0x561518
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebx + 0xac]
sub eax, dword [ecx + 4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
mov edx, dword [edx + 8]
sub ecx, dword [ebp - 0x24]
add edx, eax
cmp dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], eax
jge 0x5614bf
sub ecx, 8
cmp eax, 0x18
jge 0x5614c7
add edx, 8
mov esi, dword [ebp - 0x3c]
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [ebp - 0x4c], eax
mov dword [ebx + 0xa4], eax
lea eax, [edx + 0x20]
and eax, 0xffffffc0
mov dword [ebp - 0x38], eax
mov dword [ebx + 0xac], eax
cmp dword [ebp - 0x4c], esi
jl 0x561502
cmp dword [ebp - 0x24], 0
jle 0x561502
mov eax, dword [ebp - 0x4c]
add eax, 0xffffffc0
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x48]
cmp eax, dword [esi + 8]
mov esi, dword [ebp - 0x1c]
jg 0x561582
cmp dword [ebp - 0x20], 0
jle 0x561582
add eax, 0x40
jmp 0x56157c
mov edx, dword [ebx + 0xa4]
mov esi, dword [ebx + 0xac]
lea ecx, [edx + 0x20]
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
and eax, 0xffffffc0
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xac], eax
sub ecx, edx
mov dword [edi + 0x90], ecx
mov eax, dword [ebx + 0xac]
sub eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x561598
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0xa4]
mov edx, dword [ebx + 0xac]
add eax, 0x20
add eax, ecx
and eax, 0xffffffc0
mov dword [ebx + 0xa4], eax
mov eax, dword [ebx + 0x80]
add eax, 0x20
add eax, edx
and eax, 0xffffffc0
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0xa4]
sub eax, ecx
mov dword [edi + 0x90], eax
mov eax, dword [ebx + 0xac]
sub eax, edx
push esi
mov dword [edi + 0x94], eax
call fcn.005254f0
add esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp + 0x18], 0
jne 0x561a79
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
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 - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], 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 - 0x28], eax
cmp byte [ebx + 0x88], 0
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
je 0x561650
lea esi, [ebx + 0x8c]
lea eax, [edi + 0x14]
push esi
push eax
call fcn.005278b0
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00529320
add esp, 0x10
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x56166b
neg eax
push 0
push eax
lea eax, [edi + 0x14]
push eax
call fcn.005279e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.00527540
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x10]
add ecx, 0x3f
and edi, 0xffffffc0
and ecx, 0xffffffc0
add esi, 0x3f
and esi, 0xffffffc0
mov dword [ebp - 0xc], ecx
sub ecx, edi
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x58]
and edx, 0xffffffc0
mov eax, esi
sub eax, edx
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x34]
add eax, edi
and eax, 0xffffffc0
mov dword [ecx + 0x20], edi
mov dword [ebp - 0x14], edi
mov edi, ecx
mov dword [ecx + 0x24], esi
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, esi
and eax, 0xffffffc0
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x5c]
add esp, 8
cmp dword [eax + 0x14], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x10], edx
je 0x5619cb
mov eax, dword [edi + 4]
test byte [eax + 8], 4
jne 0x561715
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 4]
jae 0x5619cb
mov eax, dword [eax + 8]
mov al, byte [ecx + eax]
and al, 0x80
je 0x5619cb
cmp byte [esi + 0x20], 0
je 0x5619cb
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
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 - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
jmp 0x5619dd
mov eax, dword [edi + 0x80]
movsx ecx, word [esi + 0x16]
push eax
push esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], ecx
call fcn.00525770
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x561a79
mov eax, dword [ebp - 0x4c]
shl eax, 5
push eax
push dword [edi + 0x84]
push dword [esi + 0x58]
call fcn.005c7580
mov eax, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x30]
add esp, 0xc
mov dword [esi + 0x54], eax
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x5615a7
mov edx, dword [ebp + 0x18]
inc edx
shl ecx, 5
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], ecx
mov eax, dword [esi + 0x34]
add eax, ecx
mov ecx, dword [ebx + 0xa4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0xa8]
push edx
push dword [ebp + 0x14]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebx + 0xac]
push dword [eax]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebx + 0xb0]
push dword [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
movsx ecx, word [esi + 0x16]
push ebx
mov dword [ebp - 0x24], ecx
call fcn.00561210
add esp, 0x14
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x561a79
mov ecx, dword [esi + 0x34]
add ecx, dword [ebp - 0x48]
mov eax, 0x200
mov dword [ebp - 0x20], ecx
test word [ecx + 4], ax
jne 0x561847
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xac], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xb0], eax
movsx edx, word [esi + 0x16]
sub edx, dword [ebp - 0x24]
test byte [ecx + 4], 0xc8
mov dword [ebp - 0x38], edx
je 0x56188d
mov eax, dword [esi + 0x18]
mov esi, dword [ebp - 0x24]
lea esi, [eax + esi*8]
lea eax, [esi + edx*8]
mov dword [ebp - 0x30], eax
cmp esi, eax
jae 0x56188a
lea ebx, [ecx + 0x10]
mov edi, eax
nop
push ebx
push esi
call fcn.00529320
add esi, 8
add esp, 8
cmp esi, edi
jb 0x561870
mov ebx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
test byte [ecx + 4], 2
jne 0x5618d8
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x64]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x24]
jae 0x5619b5
cmp edx, dword [ebp - 0x38]
jae 0x5619b5
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x30]
add eax, edx
add eax, dword [ebp - 0x64]
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 - 0x20], ebx
mov ebx, dword [ebp - 0x68]
jmp 0x561957
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
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 - 0x54], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
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 - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x20
add eax, dword [ebx + 0x1c]
lea edx, [esi + 0x20]
mov esi, dword [ebp - 0x1c]
and edx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebp - 0x20], eax
movq xmm0, qword [esi + 0x14]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x20]
movq qword [ebp - 0x18], xmm0
movq xmm0, qword [esi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
push edx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push eax
movq qword [ebp - 0x10], xmm0
call fcn.005279e0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
inc eax
add ecx, 0x20
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], ecx
cmp eax, dword [ebp - 0x4c]
jae 0x5615a7
mov edx, dword [ebp - 0x2c]
jmp 0x5617c2
pop edi
pop esi
mov eax, 0x15
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7124
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x28], 0
je 0x5619e0
mov eax, dword [ebx + 0xac]
sub eax, dword [ebx + 0xa4]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
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 - 0x54], eax
mov eax, dword [edi + 0x28]
mov ebx, dword [ebp - 0x60]
add eax, 0x20
and eax, 0xffffffc0
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x54]
add eax, 0x20
and eax, 0xffffffc0
mov dword [edi + 0x34], eax
push dword [ebx]
call fcn.00525b80
push dword [ebp - 0x1c]
push dword [ebx]
call fcn.00525800
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x561a77
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0x14]
mov word [edi + 0x6c], cx
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0x16]
mov word [edi + 0x6e], cx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [edi + 0x70], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x74], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x78], eax
mov dword [edi + 0x48], 0x6f75746c
mov eax, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c7124
mov esp, ebp
pop ebp
ret