Function at 0x10046680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afa91
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xac], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x188], edi
mov dword [edi], vtable.MD2Rep.0
mov dword [edi + 4], 0x4b189680
mov dword [edi + 8], 0x4b189680
mov dword [edi + 0xc], 0x4b189680
mov dword [edi + 0x10], 0xcb189680
mov dword [edi + 0x14], 0xcb189680
mov dword [edi + 0x18], 0xcb189680
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push 8
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
movups xmmword [ebp - 0x120], xmm0
movups xmmword [ebp - 0x110], xmm0
movups xmmword [ebp - 0x100], xmm0
call fcn.1007f309
add esp, 4
mov dword [ebp - 0xac], eax
test eax, eax
je 0x1004679a
push 1
mov byte [ebp - 4], 2
call fcn.1007e9d5
mov ecx, dword [ebp - 0xac]
add esp, 4
mov dword [ecx + 4], eax
mov dword [ebp - 0xf0], ecx
jmp 0x100467a4
mov dword [ebp - 0xf0], 0
lea ecx, [ebp - 0x124]
call fcn.1000e040
mov ecx, dword [0x100d97f8]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
mov eax, dword [0x100d97f4]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xdc], 0
mov byte [ebp - 0xe7], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xec], 0
cmp dword [esi + 0x14], 0xf
mov byte [ebp - 4], 3
jbe 0x10046882
mov esi, dword [esi]
push 0x40
push 0x21
push esi
call fcn.1007f022
add esp, 0xc
test eax, eax
je 0x10047727
push 1
push eax
lea ecx, [ebp - 0x124]
call fcn.1000df50
mov eax, dword [ebp - 0xf0]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x90], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 4
push eax
call fcn.1000d940
add esp, 4
lea ecx, [ebp - 0x124]
push eax
call fcn.1000e0a0
mov byte [ebp - 4], 3
test esi, esi
je 0x100468f7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x100468f7
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x124]
push 0
push 0x44
mov eax, dword [eax + 0x20]
cmp eax, fcn.1000f780
jne 0x1004691c
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x124]
call fcn.1000f780
jmp 0x10046928
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x124]
call eax
cmp eax, 0x44
jne 0x10047727
test edx, edx
jne 0x10047727
cmp dword [ebp - 0x6c], 0x32504449
jne 0x10047727
cmp dword [ebp - 0x68], 8
jne 0x10047727
mov eax, dword [ebp - 0x44]
xor esi, esi
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 5
test eax, eax
je 0x100469b1
lea ecx, [ebp - 0x6d]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.10046330
mov eax, dword [ebp - 0x158]
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xc8], esi
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x124]
cdq
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x154], eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x150], edx
movlpd qword [ebp - 0x14c], xmm0
xorps xmm1, xmm1
movups xmm0, xmmword [ebp - 0x154]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm1
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x124]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x50]
push 0
lea ecx, [eax*4]
mov eax, dword [ebp - 0x124]
push ecx
push esi
lea ecx, [ebp - 0x124]
mov eax, dword [eax + 0x20]
cmp eax, fcn.1000f780
jne 0x10046a26
call fcn.1000f780
jmp 0x10046a28
call eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x164], eax
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 6
test eax, eax
je 0x10046a7d
lea ecx, [ebp - 0x6d]
push ecx
push eax
lea ecx, [ebp - 0x16c]
call fcn.10046460
mov eax, dword [ebp - 0x164]
mov esi, dword [ebp - 0x16c]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc4], esi
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x124]
cdq
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x154], eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x150], edx
movlpd qword [ebp - 0x14c], xmm0
xorps xmm1, xmm1
movups xmm0, xmmword [ebp - 0x154]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm1
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x124]
call dword [eax + 0x2c]
mov eax, dword [edi + 0x28]
push 0
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x124]
shl ecx, 2
push ecx
push esi
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x124]
cmp eax, fcn.1000f780
jne 0x10046af1
call fcn.1000f780
jmp 0x10046af3
call eax
xor eax, eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x134], eax
xor esi, esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x128], eax
push 0x18
mov byte [ebp - 4], 8
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], esi
call fcn.1007f309
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0xa4], esi
cmp dword [edi + 0x28], esi
jle 0x10046ecb
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x80], ecx
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x7c], ecx
nop dword [eax]
movzx eax, word [ecx]
mov word [ebp - 0x88], ax
movzx eax, word [ecx + 6]
lea ecx, [ebp - 0xb4]
mov word [ebp - 0x86], ax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.100460b0
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x84], eax
cmp byte [eax + 0xd], 0
jne 0x10046c2e
lea esi, [eax + 0x10]
lea edx, [ebp - 0x88]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10046bf3
xor ecx, ecx
jmp 0x10046c1f
movzx ecx, byte [edx]
movzx eax, byte [esi]
sub ecx, eax
jne 0x10046c1f
movzx ecx, byte [edx + 1]
movzx eax, byte [esi + 1]
sub ecx, eax
jne 0x10046c1f
movzx ecx, byte [edx + 2]
movzx eax, byte [esi + 2]
sub ecx, eax
jne 0x10046c1f
movzx ecx, byte [edx + 3]
movzx eax, byte [esi + 3]
sub ecx, eax
test ecx, ecx
js 0x10046c2e
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x84]
jmp 0x10046c33
mov esi, dword [ebp - 0x74]
mov eax, esi
cmp eax, esi
jne 0x10046e29
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0xb4]
sub eax, dword [ebp - 0xa8]
sar eax, 2
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.100460b0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x84], eax
cmp byte [eax + 0xd], 0
jne 0x10046cc6
lea esi, [eax + 0x10]
lea edx, [ebp - 0x88]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10046c8b
xor ecx, ecx
jmp 0x10046cb7
movzx ecx, byte [edx]
movzx eax, byte [esi]
sub ecx, eax
jne 0x10046cb7
movzx ecx, byte [edx + 1]
movzx eax, byte [esi + 1]
sub ecx, eax
jne 0x10046cb7
movzx ecx, byte [edx + 2]
movzx eax, byte [esi + 2]
sub ecx, eax
jne 0x10046cb7
movzx ecx, byte [edx + 3]
movzx eax, byte [esi + 3]
sub ecx, eax
test ecx, ecx
js 0x10046cc3
mov ecx, dword [ebp - 0x84]
jmp 0x10046d39
mov esi, dword [ebp - 0x74]
cmp dword [ebp - 0xb0], 0xaaaaaaa
je 0x10047751
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x18], eax
push 0x18
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], 0
call fcn.1007f309
mov ecx, eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x88]
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0
push ecx
push dword [ebp - 0x174]
mov dword [ecx], esi
push dword [ebp - 0x178]
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov word [ecx + 0xc], 0
lea ecx, [ebp - 0xb4]
call fcn.10002fe0
mov ecx, eax
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x78]
mov dword [ecx + 0x14], eax
mov word [ebp + esi*2 - 0x28], ax
cmp edx, dword [ebp - 0xbc]
je 0x10046d6e
mov eax, dword [ebp - 0x88]
mov dword [edx], eax
add edx, 4
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x12c], edx
jmp 0x10046da2
lea eax, [ebp - 0x88]
push eax
push edx
lea ecx, [ebp - 0x130]
call fcn.1000b4f0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xa8], eax
movzx ecx, word [ebp - 0x86]
mov edx, dword [ebp - 0xc8]
movd xmm0, dword [ebp - 0x64]
cvtdq2ps xmm0, xmm0
movsx eax, word [edx + ecx*4]
movd xmm1, eax
movsx eax, word [edx + ecx*4 + 2]
lea ecx, [edi + 0x38]
cvtdq2ps xmm1, xmm1
movd xmm2, eax
divss xmm1, xmm0
mov eax, dword [ecx + 4]
movd xmm0, dword [ebp - 0x60]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x94], xmm1
divss xmm2, xmm0
movss dword [ebp - 0x90], xmm2
cmp eax, dword [ecx + 8]
je 0x10046e11
movss dword [eax], xmm1
movss dword [eax + 4], xmm2
mov eax, dword [ebp - 0xb4]
add dword [ecx + 4], 8
mov dword [ebp - 0x74], eax
jmp 0x10046e38
lea edx, [ebp - 0x94]
push edx
push eax
call fcn.100245a0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x74], eax
jmp 0x10046e38
mov esi, dword [ebp - 0x9c]
mov ax, word [eax + 0x14]
mov word [ebp + esi*2 - 0x28], ax
mov ecx, dword [ebp - 0x7c]
inc esi
add ecx, 2
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x7c], ecx
cmp esi, 3
jl 0x10046ba0
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0xc0]
je 0x10046e77
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov ax, word [ebp - 0x24]
mov word [ecx + 4], ax
add ecx, 6
mov dword [ebp - 0x138], ecx
jmp 0x10046e93
lea eax, [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x13c]
call fcn.100178c0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x80]
inc edx
add ecx, 0xc
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x80], ecx
cmp edx, dword [edi + 0x28]
jge 0x10046ebc
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x74], eax
jmp 0x10046b90
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x9c], eax
sub esi, dword [ebp - 0xa8]
mov eax, dword [edi + 0x20]
sar esi, 2
mov dword [edi + 0x24], esi
mov esi, dword [edi + 0x30]
mov ecx, esi
sub ecx, dword [edi + 0x2c]
mov dword [ebp - 0x80], eax
mov eax, 0x38e38e39
imul ecx
mov eax, dword [ebp - 0x80]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x84], ecx
cmp eax, ecx
jae 0x10046fa2
mov edx, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
lea eax, [eax + eax*8]
lea eax, [edx + eax*4]
mov dword [ebp - 0x8c], eax
cmp eax, esi
je 0x10046f9a
add eax, 0x20
mov dword [ebp - 0x78], eax
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10046f81
mov eax, dword [eax]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x10046f60
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x84], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10047756
mov ecx, dword [ebp - 0x84]
push edx
push ecx
call fcn.1007f339
mov eax, dword [ebp - 0x78]
add esp, 8
mov dword [eax - 8], 0
mov dword [eax - 4], 0
mov dword [eax], 0
add eax, 0x24
mov dword [ebp - 0x78], eax
add eax, 0xffffffe0
cmp eax, esi
mov eax, dword [ebp - 0x78]
jne 0x10046f23
mov eax, dword [ebp - 0x8c]
lea ecx, [edi + 0x2c]
mov dword [ecx + 4], eax
jmp 0x10047078
jbe 0x10047078
mov ecx, dword [edi + 0x34]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x2c]
imul ecx
mov ecx, dword [ebp - 0x80]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x10046fd8
lea eax, [ebp - 0x6d]
push eax
push ecx
lea ecx, [edi + 0x2c]
call fcn.10046140
jmp 0x10047078
sub ecx, dword [ebp - 0x84]
je 0x10047075
lea eax, [esi + 0x14]
nop word [eax + eax]
mov dword [esi + 4], 0
lea eax, [eax + 0x24]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi], 0
add esi, 0x24
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x2c], 0
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
mov dword [eax - 0x1c], 0
mov dword [eax - 0x18], 0
sub ecx, 1
jne 0x10046ff0
mov dword [edi + 0x30], esi
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x124]
cdq
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x154], eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x150], edx
movlpd qword [ebp - 0x14c], xmm0
xorps xmm1, xmm1
movups xmm0, xmmword [ebp - 0x154]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm1
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x124]
call dword [eax + 0x2c]
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1004710f
lea ecx, [ebp - 0x6d]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.10046330
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x78], eax
cmp dword [edi + 0x20], 0
mov dword [ebp - 0x28], 0
jle 0x10047391
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x2c]
mov eax, dword [ebp - 0x124]
add esi, ecx
push 0
push 0xc
push esi
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x74], esi
call dword [eax + 0x20]
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
push 0
push 0xc
add esi, 0xc
push esi
call dword [eax + 0x20]
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x74]
push 0
movss xmm1, dword [ecx + 8]
movss xmm2, dword [ecx + 4]
movss xmm0, dword [ecx]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx + 0x14]
movq qword [ecx], xmm2
movss xmm2, dword [ecx + 0x10]
movss dword [ebp - 0x140], xmm0
movss xmm0, dword [esi]
mov eax, dword [ebp - 0x140]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x124]
unpcklps xmm2, xmm1
movq qword [esi], xmm2
movss dword [ebp - 0x170], xmm0
mov eax, dword [ebp - 0x170]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
shl eax, 2
push eax
mov eax, dword [ebp - 0x124]
push dword [ebp - 0x78]
call dword [eax + 0x20]
mov esi, dword [ebp - 0x74]
mov eax, dword [esi + 0x1c]
lea edx, [esi + 0x18]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x7c], eax
sub eax, dword [edx]
sar eax, 2
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x80], eax
cmp ecx, eax
jae 0x1004720c
mov eax, dword [edx]
lea eax, [eax + ecx*4]
jmp 0x10047255
jbe 0x10047258
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp ecx, eax
jbe 0x10047228
lea eax, [ebp - 0x6d]
push eax
push ecx
mov ecx, edx
call fcn.10046330
jmp 0x10047258
sub ecx, dword [ebp - 0x80]
je 0x10047252
lea esi, [ecx*4]
push esi
push 0
push dword [ebp - 0x7c]
call fcn.10081440
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov edx, dword [ebp - 0xa4]
add eax, esi
mov esi, dword [ebp - 0x74]
jmp 0x10047255
mov eax, dword [ebp - 0x7c]
mov dword [edx + 4], eax
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0x80], 0
cmp dword [edi + 0x24], 0
jle 0x10047372
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x7c], eax
nop dword [eax]
mov edx, dword [esi + 0x18]
mov edi, dword [ebp - 0x78]
add edx, ecx
mov ecx, dword [ebp - 0xa8]
movzx eax, word [ecx + eax]
mov ecx, dword [ebp - 0x78]
mov cl, byte [ecx + eax*4 + 1]
mov byte [edx], cl
mov ch, byte [edi + eax*4 + 2]
mov byte [edx + 1], ch
mov byte [ebp - 0x9d], ch
mov ch, byte [edi + eax*4]
mov byte [edx + 2], ch
movzx eax, byte [edi + eax*4 + 3]
mov byte [edx + 3], al
mov edi, dword [ebp - 0xb8]
movzx eax, cl
mov byte [ebp - 0x6d], ch
movss xmm0, dword [edi + 4]
movd xmm3, eax
movzx eax, byte [ebp - 0x9d]
cvtdq2ps xmm3, xmm3
movd xmm1, eax
mulss xmm3, dword [esi]
movzx eax, ch
cvtdq2ps xmm1, xmm1
addss xmm3, dword [esi + 0xc]
mulss xmm1, dword [esi + 4]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm0, xmm3
mulss xmm2, dword [esi + 8]
addss xmm1, dword [esi + 0x10]
addss xmm2, dword [esi + 0x14]
jbe 0x1004730d
movss dword [edi + 4], xmm3
movss xmm0, dword [edi + 8]
comiss xmm0, xmm1
jbe 0x1004731c
movss dword [edi + 8], xmm1
movss xmm0, dword [edi + 0xc]
comiss xmm0, xmm2
jbe 0x1004732b
movss dword [edi + 0xc], xmm2
comiss xmm3, dword [edi + 0x10]
jbe 0x10047336
movss dword [edi + 0x10], xmm3
comiss xmm1, dword [edi + 0x14]
jbe 0x10047341
movss dword [edi + 0x14], xmm1
comiss xmm2, dword [edi + 0x18]
jbe 0x1004734c
movss dword [edi + 0x18], xmm2
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xa4]
inc eax
add dword [ebp - 0x7c], 4
add ecx, 4
cmp eax, dword [edi + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa4], ecx
jl 0x10047280
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x8c]
inc eax
add ecx, 0x24
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x8c], ecx
cmp eax, dword [edi + 0x20]
jl 0x10047130
mov ecx, dword [0x100da03c]
push 0
push dword [edi + 0x28]
push dword [edi + 0x24]
call fcn.10058330
push 1
mov ecx, eax
mov dword [edi + 0x1c], eax
call fcn.1005dd10
cmp dword [edi + 0x28], 0
mov dword [ebp - 0x8c], 0
jle 0x10047436
xor ecx, ecx
mov dword [ebp - 0x74], ecx
nop word [eax + eax]
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xb8]
movzx edi, word [eax + ecx + 2]
movzx edx, word [eax + ecx + 4]
mov esi, dword [esi + 0x1c]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x9c]
mov ecx, dword [esi + 8]
mov ax, word [edi + eax]
mov edi, dword [ebp - 0x74]
mov word [edi + ecx], ax
mov ecx, edi
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x28]
mov word [eax + ecx + 2], dx
mov eax, dword [esi + 8]
mov word [eax + ecx + 4], di
add ecx, 6
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x74], ecx
cmp eax, dword [edi + 0x28]
jl 0x100473d0
mov ecx, dword [edi + 0x1c]
call fcn.1005de60
cmp dword [0x100df99c], 0
jne 0x100475d3
mov dword [0x100df99c], 0x100d6028
mov ecx, 0x100d6030
mov edx, 0x12
nop
movss xmm1, dword [ecx]
lea ecx, [ecx + 0x6c]
movss xmm2, dword [ecx - 0x70]
movss xmm0, dword [ecx - 0x74]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x60]
movq qword [ecx - 0x74], xmm2
movss xmm2, dword [ecx - 0x64]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x54]
movss dword [ebp - 0x90], xmm0
mov eax, dword [ebp - 0x90]
movss xmm0, dword [ecx - 0x68]
movq qword [ecx - 0x68], xmm2
movss xmm2, dword [ecx - 0x58]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x48]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x5c]
movq qword [ecx - 0x5c], xmm2
movss xmm2, dword [ecx - 0x4c]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x3c]
mov dword [ecx - 0x6c], eax
mov eax, dword [ebp - 0x90]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x50]
movq qword [ecx - 0x50], xmm2
movss xmm2, dword [ecx - 0x40]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x30]
mov dword [ecx - 0x60], eax
mov eax, dword [ebp - 0x90]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x44]
movq qword [ecx - 0x44], xmm2
movss xmm2, dword [ecx - 0x34]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x24]
mov dword [ecx - 0x54], eax
mov eax, dword [ebp - 0x90]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x38]
movq qword [ecx - 0x38], xmm2
movss xmm2, dword [ecx - 0x28]
mov dword [ecx - 0x48], eax
mov eax, dword [ebp - 0x90]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0x18]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x2c]
movq qword [ecx - 0x2c], xmm2
movss xmm2, dword [ecx - 0x1c]
mov dword [ecx - 0x3c], eax
mov eax, dword [ebp - 0x90]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x20]
unpcklps xmm2, xmm1
movss xmm1, dword [ecx - 0xc]
mov dword [ecx - 0x30], eax
mov eax, dword [ebp - 0x90]
movq qword [ecx - 0x20], xmm2
movss xmm2, dword [ecx - 0x10]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ecx - 0x14]
mov dword [ecx - 0x24], eax
mov eax, dword [ebp - 0x90]
mov dword [ecx - 0x18], eax
unpcklps xmm2, xmm1
movss dword [ebp - 0x90], xmm0
mov eax, dword [ebp - 0x90]
movq qword [ecx - 0x14], xmm2
mov dword [ecx - 0xc], eax
sub edx, 1
jne 0x10047460
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1004760d
mov edx, dword [ebp - 0x84]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x10047603
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047756
push edx
push ecx
call fcn.1007f339
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.10002860
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x10047655
mov edx, dword [ebp - 0xbc]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x1004764b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047756
push edx
push ecx
call fcn.1007f339
add esp, 8
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x100476a2
mov ecx, dword [ebp - 0xc0]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
add ecx, ecx
cmp ecx, 0x1000
jb 0x10047698
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047756
push ecx
push esi
call fcn.1007f339
add esp, 8
mov esi, dword [ebp - 0xc4]
test esi, esi
je 0x100476ee
mov ecx, dword [ebp - 0xcc]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x100476e4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047756
push ecx
push esi
call fcn.1007f339
add esp, 8
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x10047727
mov edx, dword [ebp - 0xac]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x1004771d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047756
push edx
push ecx
call fcn.1007f339
add esp, 8
lea ecx, [ebp - 0x124]
call fcn.1000db60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 4
call fcn.10003210
call fcn.1008498a
int3