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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa68
cmp byte [edx], 1
mov ebx, edx
mov edi, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x30], edx
jne 0x46fe73
mov eax, dword [edi + 0xd8]
and dword [esp + 0x70], 0
and dword [esp + 0x10], 0
and dword [esp + 0x20], 0
and dword [esp + 0x38], 0
and dword [esp + 0x7c0], 0
and dword [esp + 0xac], 0
and dword [esp + 0x74], 0
and dword [esp + 0x14], 0
and dword [esp + 0x24], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x7c4], 0
and dword [esp + 0xb0], 0
test eax, eax
je 0x46fbb6
mov edx, dword [eax + 8]
lea ebx, [esp + 0x350]
lea eax, [esp + 0x20]
lea edi, [esp + 0x70]
lea esi, [esp + 0x10]
mov ecx, ebx
push eax
push esi
push edi
push edi
mov edi, dword [esp + 0x18]
call fcn.0046e468
add esp, 0x10
mov ecx, ebx
call fcn.0046d2e5
lea eax, [esp + 0xac]
lea ecx, [esp + 0x7c0]
lea edx, [esp + 0x38]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimes]
xor ebx, ebx
test eax, eax
mov eax, 0
jne 0x46fbf2
call fcn.00472a20
mov dword [esp + 0x354], eax
xor eax, eax
mov dword [esp + 0x358], edx
inc eax
mov dword [esp + 0x350], eax
mov eax, dword [esp + 0x7c0]
mov ecx, dword [esp + 0x7c4]
mov esi, dword [edi + 0x70]
mov edx, dword [edi + 0x74]
mov dword [esp + 0x48], eax
cmp eax, esi
mov eax, ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 0x7c]
sbb eax, edx
mov eax, dword [esp + 0x20]
cmovb edx, ebx
cmovb esi, ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 0x78]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0x68]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x60]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x58], eax
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x64], eax
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], eax
mov dword [edi + 0x70], ecx
sub ecx, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x64]
mov dword [edi + 0x74], ecx
sbb ecx, dword [esp + 0x60]
cmp eax, edx
mov edi, ebx
sbb edi, esi
mov edi, esi
mov esi, 0
cmovb edx, esi
cmovb edi, esi
sub eax, edx
sbb ebx, edi
xor esi, esi
dec esi
add eax, dword [esp + 0x48]
adc ebx, ecx
cmovb eax, esi
cmovb ebx, esi
mov ecx, eax
or ecx, ebx
je 0x46fe54
mov edi, dword [esp + 0x7c]
mov edx, dword [esp]
mov ecx, dword [esp + 0x54]
movd xmm0, eax
movd xmm1, ebx
punpckldq xmm0, xmm1
cmp dword [esp + 4], edi
mov esi, edx
sbb esi, ecx
mov esi, 0
cmovb edi, esi
cmovb ecx, esi
sub dword [esp + 4], edi
mov edi, dword [esp + 0x34]
sbb edx, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp], edx
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x1c], ecx
mov esi, edx
sbb esi, edi
mov esi, 0
cmovb edi, esi
cmovb ecx, esi
mov esi, dword [esp + 0x1c]
movq qword [esp + 0x98], xmm0
fild qword [esp + 0x98]
fnstcw word [esp + 0x52]
movzx eax, word [esp + 0x52]
sub esi, ecx
sbb edx, edi
shr ebx, 0x1f
mov ecx, esi
or eax, 0x300
mov word [esp + 0x6e], ax
mov eax, 0xffffffff
fldcw word [esp + 0x6e]
fadd dword [ebx*4 + 0x493118]
add ecx, dword [esp + 4]
adc edx, dword [esp]
fldcw word [esp + 0x52]
cmovb edx, eax
cmovb ecx, eax
fstp dword [esp + 0x88]
movd xmm0, edx
movd xmm1, ecx
shr edx, 0x1f
mov ecx, dword [ebp + 8]
punpckldq xmm1, xmm0
movq qword [esp + 0xa0], xmm1
fild qword [esp + 0xa0]
fnstcw word [esp + 0x50]
movzx eax, word [esp + 0x50]
movd xmm0, ecx
or eax, 0x300
mov word [esp + 0x6c], ax
mov eax, dword [ebp + 0xc]
fldcw word [esp + 0x6c]
movd xmm1, eax
shr eax, 0x1f
fadd dword [edx*4 + 0x493118]
fldcw word [esp + 0x50]
punpckldq xmm0, xmm1
fstp dword [esp + 0x80]
movss xmm2, dword [esp + 0x80]
divss xmm2, dword [esp + 0x88]
movq qword [esp + 0x90], xmm0
fild qword [esp + 0x90]
fnstcw word [esp + 0x4e]
movzx ecx, word [esp + 0x4e]
mulss xmm2, dword [0x493120]
or ecx, 0x300
mov word [esp + 0x6a], cx
lea ecx, [esp + 0x350]
fldcw word [esp + 0x6a]
fadd dword [eax*4 + 0x493118]
fldcw word [esp + 0x4e]
fstp dword [esp + 0x84]
mulss xmm2, dword [esp + 0x84]
movss dword [esp + 4], xmm2
call fcn.0046d2e5
movss xmm0, dword [esp + 4]
jmp 0x46fe63
lea ecx, [esp + 0x350]
call fcn.0046d2e5
xorps xmm0, xmm0
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x30]
movss dword [edi + 0xdc], xmm0
cmp byte [ebx + 1], 1
jne 0x46ff2a
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x46ff2a
push dword [eax + 8]
call fcn.004723e4
pop ecx
lea ecx, [esp + 0x7c0]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ecx
call fcn.004723dc
pop ecx
lea ecx, [esp + 0x350]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
test eax, eax
je 0x46ff0d
lea ecx, [esp + 0xac]
and dword [ecx], 0
call fcn.0046d2e5
movsd xmm0, qword [esp + 0x368]
movq xmm1, qword [esp + 0x370]
movsd xmm2, qword [edi + 0xa0]
movsd xmm3, qword [edi + 0xa8]
movsd qword [edi + 0x90], xmm2
movsd qword [edi + 0x98], xmm3
movsd qword [edi + 0xa0], xmm0
movq qword [edi + 0xa8], xmm1
jmp 0x46ff2a
call fcn.00472a20
lea ecx, [esp + 0xac]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx], 1
call fcn.0046d2e5
cmp byte [ebx + 2], 1
jne 0x46ff47
mov eax, dword [ebp + 0x18]
and dword [edi + 0x54], 0
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x5c]
mov dword [edi + 0x50], ecx
and dword [edi + 0x5c], 0
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x470157
movzx ecx, byte [ebx + 3]
test ecx, ecx
je 0x470157
mov esi, dword [eax + 8]
lea edx, [edi + 0xc8]
cmp ecx, 1
je 0x46ff79
xor eax, eax
cmp eax, dword [edx]
jno 0x470157
mov dword [esp + 4], edx
call fcn.00404a11
lea edi, [esp + 0x10]
mov dword [edi], eax
push esi
call fcn.004723e4
pop ecx
lea ecx, [esp + 0xac]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ecx
call fcn.004723dc
pop ecx
push edi
push 8
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x4700ed
lea ecx, [esp + 0x350]
mov esi, ebx
and dword [ecx], 0
call fcn.0046d2e5
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 8]
lea eax, [ebx - 1]
cmp eax, 0xfffffffe
jae 0x470155
lea eax, [esp + 0x38]
mov dword [esp + 0x20], ebx
and dword [eax], 0
sub esp, 0x10
and dword [esp + 8], 0
and dword [esp], 0
lea edi, [esp + 0x360]
mov edx, ebx
mov dword [esp + 0xc], eax
mov ecx, edi
call fcn.0046e4b3
add esp, 0x10
test byte [edi], 1
je 0x470037
mov edi, dword [esp + 0x354]
mov eax, dword [esp + 0x358]
lea ecx, [esp + 0xac]
mov dword [ecx], edi
mov dword [ecx + 4], eax
call fcn.0043c3e5
cmp edi, 0x8007007a
jne 0x470146
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x350]
mov ecx, edi
mov dword [esp], eax
call fcn.0046e411
mov ecx, edi
call fcn.0046d6c8
cmp eax, 1
jne 0x470146
push edx
call fcn.004723e4
pop ecx
mov dword [esp + 0x350], eax
lea eax, [esp + 0x350]
mov dword [esp + 0x354], edx
push eax
call fcn.004723dc
pop ecx
push dword [esp]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x470146
mov edi, eax
mov dword [esp + 0x7c0], eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x350]
mov edx, ebx
push eax
push dword [esp + 0x3c]
push edi
push 1
call fcn.0046e4b3
add esp, 0x10
lea eax, [esp + 0x350]
test byte [eax], 1
je 0x470110
mov eax, dword [esp + 0x354]
mov edx, dword [esp + 0x358]
lea ecx, [esp + 0xac]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0043c3e5
lea eax, [esp + 0x7c0]
jmp 0x47013f
call fcn.00472a20
lea ecx, [esp + 0x350]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx], 1
call fcn.0046d2e5
mov edi, dword [esp + 8]
jmp 0x470157
lea ecx, [esp + 0x350]
call fcn.0046d2e5
mov edx, dword [edi]
lea ebx, [esp + 0x350]
mov ecx, ebx
call fcn.004722a6
mov edi, dword [ebx]
mov eax, edi
neg eax
lea eax, [esp + 0x7c0]
jno 0x470845
push eax
call fcn.0046fa84
pop eax
lea eax, [esp + 0x20]
push eax
call fcn.0046fa65
pop eax
mov edi, dword [esp + 8]
mov ebx, esi
mov ch, byte [ebx + 4]
mov cl, byte [ebx + 5]
mov al, byte [ebx + 6]
movzx ebx, byte [ebx + 7]
movzx edx, ch
movzx esi, cl
mov dword [esp + 4], ebx
test ebx, ebx
movzx ebx, al
mov byte [esp + 0x1c], al
je 0x470189
cmp dword [esp + 4], 1
je 0x4701c3
cmp dword [edi + 0xb8], 0
je 0x4701c3
test ebx, ebx
je 0x47019b
cmp ebx, 1
je 0x4701c3
cmp dword [edi + 0xc4], 0
je 0x4701c3
test edx, edx
je 0x4701ab
cmp edx, 1
je 0x4701c3
xor eax, eax
cmp eax, dword [edi + 0x30]
jo 0x4701c3
test esi, esi
je 0x470680
cmp esi, 1
je 0x4701c3
xor eax, eax
cmp eax, dword [edi + 0x40]
jno 0x470680
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x470680
mov byte [esp + 0x48], ch
mov byte [esp + 0x60], cl
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], edx
lea eax, [esp + 0x8c]
push 0x1a
pop edx
mov dword [esp], ecx
push 0
push 4
push eax
call fcn.0046e2cb
add esp, 0xc
test eax, eax
js 0x470680
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x58], esi
test ebx, ebx
je 0x470305
sub esp, 4
mov edx, dword [esp + 4]
lea esi, [esp + 0xb0]
lea eax, [esp + 0x354]
mov ecx, esi
push 0
push 0x470
push eax
push ebx
call fcn.0046e39f
add esp, 0x14
mov bl, byte [esi]
mov ecx, esi
call fcn.0046d2e5
test bl, 1
jne 0x470680
sub esp, 4
mov edx, dword [esp + 4]
lea esi, [esp + 0xb0]
lea eax, [esp + 0x7c4]
mov ecx, esi
push 0
push 0x2a4
push eax
push dword [esp + 0x370]
call fcn.0046e39f
add esp, 0x14
mov bl, byte [esi]
mov ecx, esi
call fcn.0046d2e5
test bl, 1
jne 0x470680
push 0x2a4
lea eax, [esp + 0x7c4]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x5c]
test al, al
je 0x4704b1
movzx eax, al
cmp eax, 1
je 0x4702ce
cmp dword [edi + 0xb8], 0
jne 0x4704b1
lea esi, [edi + 0xb0]
call fcn.0046faf3
cmp byte [eax], 0
je 0x470437
mov edx, dword [esp]
lea ecx, [esp + 0x38]
call fcn.00470e6a
mov ecx, esi
call fcn.0046d40c
lea ecx, [esp + 0x38]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
jmp 0x4704aa
mov dword [esp + 0x34], ebx
sub esp, 0xc
mov ebx, dword [esp + 0xc]
and dword [esp + 8], 0
lea eax, [esp + 0x35c]
xor edx, edx
mov dword [esp + 4], 0x18
mov dword [esp], eax
mov ecx, ebx
call fcn.0046e2cb
add esp, 0xc
test eax, eax
js 0x470680
mov esi, edi
lea edi, [esp + 0x350]
xor edx, edx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 4]
test ecx, ecx
setne dl
mov dword [esi], edx
mov dword [esi + 4], ecx
sub esp, 4
lea esi, [esp + 0x7c4]
mov ecx, edi
mov edx, ebx
push 0
push 0x1d8
push esi
push eax
call fcn.0046e39f
add esp, 0x14
mov al, byte [edi]
mov ecx, edi
mov byte [esp + 0xc], al
call fcn.0046d2e5
test byte [esp + 0xc], 1
jne 0x47067c
sub esp, 4
lea edi, [esp + 0x354]
lea esi, [esp + 0xb0]
mov edx, ebx
mov ecx, edi
push 0
push 0x2a4
push esi
push dword [esp + 0x7e0]
call fcn.0046e39f
add esp, 0x14
mov bl, byte [edi]
mov ecx, edi
call fcn.0046d2e5
test bl, 1
jne 0x47067c
push 0x2a4
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x5c]
test eax, eax
je 0x470912
cmp eax, 1
je 0x470400
cmp dword [edi + 0xb8], 0
jne 0x470912
lea esi, [edi + 0xb0]
call fcn.0046faf3
cmp byte [eax], 0
je 0x470898
mov edx, dword [esp]
lea ecx, [esp + 0x38]
call fcn.00470e6a
mov ecx, esi
call fcn.0046d40c
lea ecx, [esp + 0x38]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
jmp 0x47090b
mov dword [esp + 4], esi
lea esi, [esp + 0x20]
push dword [esp]
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.004721dd
add esp, 0xc
xor eax, eax
cmp eax, dword [esi]
jno 0x47046d
and dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
and dword [esp + 0x18], 0
jmp 0x470495
movsd xmm0, qword [esp + 0x20]
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x38]
lea ecx, [esp + 0x10]
movsd qword [esi], xmm0
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
call fcn.00470cc6
mov ecx, esi
call fcn.0046d360
mov esi, dword [esp + 4]
mov ecx, esi
call fcn.0046d40c
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
cmp byte [esp + 0x1c], 0
je 0x4705f3
cmp ebx, 1
je 0x4704ce
cmp dword [edi + 0xc4], 0
jne 0x4705f3
lea ebx, [edi + 0xbc]
lea esi, [esp + 0x10]
push dword [esp]
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.00472225
add esp, 0xc
xor eax, eax
cmp eax, dword [esi]
jno 0x470516
mov ecx, ebx
call fcn.0046d40c
and dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 4
and dword [edi + 0xc4], 0
jmp 0x4705f3
lea ecx, [esp + 0x38]
lea eax, [0x493755]
mov dword [ecx], 0x493754
mov dword [ecx + 4], eax
and word [ecx + 8], 0
call fcn.0046e864
test al, 1
mov word [esp + 4], dx
je 0x470b76
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
lea esi, [esp + 0x20]
mov ecx, ebx
mov dword [esi + 8], eax
movsd qword [esi], xmm0
call fcn.0046da70
xor edx, edx
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.0046e519
add edx, edx
xor ecx, ecx
test edx, edx
je 0x4705ea
cmp word [eax], 0
je 0x470580
add eax, 2
add edx, 0xfffffffe
dec ecx
jmp 0x47056d
mov edx, dword [esp + 0x1c]
mov esi, edx
sub esi, ecx
lea ecx, [esp + 0x20]
push 0x493778
push esi
call fcn.0046e534
pop ecx
pop ecx
add edx, edx
test edx, edx
je 0x4705ea
movzx ecx, word [esp + 4]
add edx, 0xfffffffe
cmp word [eax], cx
lea eax, [eax + 2]
jne 0x47059b
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push 0x493788
push esi
call fcn.0046e534
pop ecx
pop ecx
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0042adc0
add esp, 0xc
mov ecx, ebx
lea edx, [esp + 0x38]
call fcn.0046da37
inc esi
mov edx, esi
lea esi, [esp + 0x20]
jmp 0x47055e
lea ecx, [esp + 0x20]
call fcn.0046d360
cmp byte [esp + 0x48], 0
lea ecx, [edi + 0x30]
mov dword [esp + 4], ecx
je 0x470610
cmp dword [esp + 0x64], 1
mov bh, byte [esp + 0x60]
jne 0x470618
mov dl, 1
jmp 0x47061f
mov bh, byte [esp + 0x60]
xor edx, edx
jmp 0x47061f
xor eax, eax
cmp eax, dword [ecx]
seto dl
lea esi, [edi + 0x40]
test bh, bh
je 0x47063d
cmp dword [esp + 0x58], 1
lea ecx, [esp + 0xac]
je 0x47064c
xor eax, eax
cmp eax, dword [esi]
seto al
jmp 0x470646
xor eax, eax
lea ecx, [esp + 0xac]
or al, dl
cmp al, 1
jne 0x470680
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x70]
push dword [esp]
push ecx
push edi
call fcn.00472201
add esp, 0xc
xor eax, eax
cmp eax, dword [edi]
jno 0x4707ac
mov esi, dword [esp + 4]
mov ecx, esi
call fcn.00404480
mov dword [esi], 0x80000000
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
movzx eax, byte [eax + 8]
test eax, eax
je 0x47077d
lea ecx, [edi + 0x20]
cmp eax, 1
je 0x4706a8
xor eax, eax
cmp eax, dword [ecx]
jno 0x47077d
mov edi, dword [edi + 0xd8]
test edi, edi
je 0x47074c
lea eax, [esp + 0x350]
push 0x20a
push 0
push eax
mov dword [esp + 0x3c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [edi + 8]
call fcn.00404a11
mov dword [esp], eax
push edi
call fcn.004723e4
pop ecx
lea ecx, [esp + 0x7c0]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ecx
call fcn.004723dc
pop ecx
mov dword [esp + 4], eax
push dword [esp]
call fcn.004723e4
pop ecx
lea ecx, [esp + 0xac]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ecx
call fcn.004723dc
pop ecx
mov ecx, 0x105
push ecx
lea edi, [esp + 0x354]
push edi
push eax
push dword [esp + 0x10]
call dword [sym.imp.psapi.dll_GetModuleFileNameExW]
lea ecx, [esp + 0xac]
mov eax, 0x105
mov edx, edi
push eax
call fcn.00472276
mov ecx, dword [esp + 0x34]
add esp, 4
jmp 0x470757
mov dword [esp + 0xac], 0x80000000
mov edi, ecx
call fcn.00404480
movsd xmm0, qword [esp + 0xac]
movq xmm1, qword [esp + 0xb4]
movq qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov edi, dword [esp + 8]
xor eax, eax
sub esi, dword [edi + 0x80]
sbb ebx, dword [edi + 0x84]
cmovb esi, eax
cmovb ebx, eax
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x88], esi
mov byte [edi + 0xe0], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x70]
lea ebx, [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x18], eax
movsd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
push eax
call fcn.00472276
pop eax
push ebx
call fcn.004324d0
pop ecx
mov ecx, dword [esp + 0x30]
mov ebx, edx
mov edx, eax
push esi
push ebx
call fcn.00470bc5
pop eax
pop ecx
cmp byte [esp + 0x1c], 0
je 0x47082a
mov esi, dword [esp + 4]
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
mov ecx, esi
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
call fcn.00404480
movsd xmm0, qword [esp + 0x38]
movq xmm1, qword [esp + 0x40]
movq qword [esi + 8], xmm1
movsd qword [esi], xmm0
jmp 0x470833
lea ecx, [esp + 0x20]
call fcn.00403ce8
mov edi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.0046d360
jmp 0x470680
mov ecx, dword [esp + 0x354]
mov ebx, dword [esp + 0x358]
mov dword [esp], ecx
mov ecx, dword [esp + 4]
call fcn.00404480
mov eax, dword [esp + 8]
mov dword [eax + 0xc8], edi
mov edi, eax
mov dword [eax + 0xd0], ebx
mov eax, dword [esp]
mov dword [edi + 0xcc], eax
lea eax, [esp + 0x7c0]
push eax
call fcn.0046fa84
pop eax
lea eax, [esp + 0x20]
push eax
call fcn.0046fa65
pop eax
jmp 0x470155
mov dword [esp + 0xc], esi
lea esi, [esp + 0x20]
push dword [esp]
lea eax, [esp + 0x354]
push eax
push esi
call fcn.004721dd
add esp, 0xc
xor eax, eax
cmp eax, dword [esi]
jno 0x4708ce
and dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
and dword [esp + 0x18], 0
jmp 0x4708f6
movsd xmm0, qword [esp + 0x20]
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x38]
lea ecx, [esp + 0x10]
movsd qword [esi], xmm0
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
call fcn.00470cc6
mov ecx, esi
call fcn.0046d360
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.0046d40c
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
test ebx, ebx
je 0x470a51
cmp ebx, 1
je 0x47092c
cmp dword [edi + 0xc4], 0
jne 0x470a51
lea ebx, [edi + 0xbc]
lea esi, [esp + 0x10]
push dword [esp]
lea eax, [esp + 0x354]
push eax
push esi
call fcn.00472225
add esp, 0xc
xor eax, eax
cmp eax, dword [esi]
jno 0x470974
mov ecx, ebx
call fcn.0046d40c
and dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 4
and dword [edi + 0xc4], 0
jmp 0x470a51
lea ecx, [esp + 0x38]
lea eax, [0x493755]
mov dword [ecx], 0x493754
mov dword [ecx + 4], eax
and word [ecx + 8], 0
call fcn.0046e864
test al, 1
mov word [esp + 0xc], dx
je 0x470b76
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
lea esi, [esp + 0x20]
mov ecx, ebx
mov dword [esi + 8], eax
movsd qword [esi], xmm0
call fcn.0046da70
xor edx, edx
mov ecx, esi
mov dword [esp + 0x54], edx
call fcn.0046e519
add edx, edx
xor ecx, ecx
test edx, edx
je 0x470a48
cmp word [eax], 0
je 0x4709de
add eax, 2
add edx, 0xfffffffe
dec ecx
jmp 0x4709cb
mov edx, dword [esp + 0x54]
mov esi, edx
sub esi, ecx
lea ecx, [esp + 0x20]
push 0x493778
push esi
call fcn.0046e534
pop ecx
pop ecx
add edx, edx
test edx, edx
je 0x470a48
movzx ecx, word [esp + 0xc]
add edx, 0xfffffffe
cmp word [eax], cx
lea eax, [eax + 2]
jne 0x4709f9
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push 0x493788
push esi
call fcn.0046e534
pop ecx
pop ecx
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0042adc0
add esp, 0xc
mov ecx, ebx
lea edx, [esp + 0x38]
call fcn.0046da37
inc esi
mov edx, esi
lea esi, [esp + 0x20]
jmp 0x4709bc
lea ecx, [esp + 0x20]
call fcn.0046d360
mov eax, dword [esp + 0x64]
lea ecx, [edi + 0x30]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x470a6d
mov ebx, dword [esp + 0x34]
cmp eax, 1
jne 0x470a75
mov cl, 1
jmp 0x470a7c
mov ebx, dword [esp + 0x34]
xor ecx, ecx
jmp 0x470a7c
xor eax, eax
cmp eax, dword [ecx]
seto cl
mov eax, dword [esp + 0x58]
lea esi, [edi + 0x40]
test eax, eax
je 0x470a95
cmp eax, 1
je 0x470aa1
xor eax, eax
cmp eax, dword [esi]
seto al
jmp 0x470a97
xor eax, eax
or al, cl
cmp al, 1
jne 0x470219
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x70]
push dword [esp]
lea eax, [esp + 0x354]
push eax
push edi
call fcn.00472201
add esp, 0xc
xor eax, eax
cmp eax, dword [edi]
jno 0x470add
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00404480
mov edi, dword [esp + 8]
mov dword [esi], 0x80000000
jmp 0x470219
mov eax, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x70]
lea edi, [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x18], eax
movsd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
push eax
call fcn.00472276
pop eax
push edi
call fcn.004324d0
pop ecx
mov ecx, dword [esp + 0x30]
mov edi, edx
mov edx, eax
push esi
push edi
call fcn.00470bc5
pop eax
pop ecx
cmp byte [esp + 0x34], 0
je 0x470b5b
mov esi, dword [esp + 0xc]
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
mov ecx, esi
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
call fcn.00404480
movsd xmm0, qword [esp + 0x38]
movq xmm1, qword [esp + 0x40]
movq qword [esi + 8], xmm1
movsd qword [esi], xmm0
jmp 0x470b64
lea ecx, [esp + 0x20]
call fcn.00403ce8
mov edi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.0046d360
jmp 0x470219
push 0x493758
call fcn.0047bf30