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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x190
mov edi, dword [esp + 0x1a8]
call 0x474676
pop eax
mov ebp, edx
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, 0x7fffffff
add eax, dword [edi]
lea esi, [edi + 0xc]
mov dword [esp + 0x28], esi
cmp eax, 5
setae dl
cmp eax, 1
sete al
or al, dl
cmp al, 1
jne 0x474714
cmp dword [edi + 0xc], 0x80000009
jne 0x474714
mov ebx, dword [esp + 0x1a4]
mov ecx, ebp
mov edx, edi
call fcn.0046e1d0
cmp dword [edi + 0x18], 0
je 0x47490e
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], 0x80000001
mov dword [esp + 0x100], 0x100001
xor eax, eax
lea edx, [esp + 0xfc]
mov ecx, ebx
cmp byte [ebx + 0x31], 2
sete al
push eax
call fcn.00459840
add esp, 4
mov eax, dword [esp]
mov byte [ebx + 0x251], 1
mov byte [eax], 3
mov byte [eax + 4], 5
jmp 0x47479c
test al, al
je 0x474743
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 2
call fcn.0049d570
test eax, eax
je 0x475223
mov word [eax], 0xa
lea edx, [edi + 0x78]
mov cl, 1
movzx ebx, byte [edi + 0x79]
jmp 0x47477d
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 2
call fcn.0049d570
test eax, eax
je 0x475223
mov word [eax], 2
mov ecx, 0x7fffffff
mov edx, 1
add ecx, dword [edi]
cmp ecx, 5
cmovb edx, ecx
xor ecx, ecx
lea edx, [edx + 0x8ff0ac]
movzx edx, byte [edx]
mov esi, dword [esp]
mov byte [esi + 1], dl
mov byte [esi + 2], bl
mov byte [esi], cl
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov esi, dword [edi]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x4747dc
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x475248]
jmp ecx
test dword [edi + 4], 0x7fffffff
jne 0x474b98
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
jne 0x4747f9
lea ecx, [ebp + 0x3c]
call fcn.00468c10
cmp byte [ebp + 0x28], 0
jne 0x474819
test dword [ebp + 0x2c], 0x7fffffff
je 0x474819
push dword [ebp + 0x30]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x47482b
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x474849
cmp dword [edi + 8], 9
jb 0x47483a
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [ebp], 0x7fffffff
je 0x474863
push dword [ebp + 4]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [ebp + 0x48]
mov esi, dword [ebp + 0x44]
mov eax, dword [edi]
test eax, eax
je 0x474875
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x474893
cmp dword [edi + 8], 9
jb 0x474884
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [ebp + 0x50]
call fcn.00444b60
lea ecx, [ebp + 0x94]
call fcn.00444b60
mov ebx, dword [ebp + 0x1c]
mov eax, ebx
neg eax
jo 0x4748f4
mov eax, dword [ebp + 0x20]
mov edi, ebp
mov ebp, dword [ebp + 0x24]
test ebp, ebp
mov dword [esp], eax
je 0x4748dd
mov esi, dword [esp]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, esi
call fcn.00447aa0
add esi, 0x3c
dec ebp
jne 0x4748d0
test ebx, ebx
mov ebp, edi
je 0x4748f4
push dword [esp]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push ebp
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x190
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x24]
xor eax, eax
mov dword [esp + 4], ebp
test ecx, ecx
je 0x47496a
mov edx, dword [edi + 0x20]
shl ecx, 4
mov esi, 3
jmp 0x474938
add edx, 0x10
add ecx, 0xfffffff0
je 0x47496a
mov edi, dword [edx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
lea ebp, [ebx - 1]
cmp ebp, 2
jb 0x474930
cmp ebx, 3
jne 0x47495a
cmp word [edx + 0xc], 0xd
jne 0x474930
cmp edi, 0x80000001
jne 0x47496a
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
jmp 0x47496a
test eax, eax
mov ebp, 2
cmove ecx, eax
cmovne ebp, eax
mov eax, 0xfa8
lea edi, [ebp + ecx*4]
shl ecx, 2
test ecx, ecx
je 0x47518b
movzx esi, word [ebp]
add ebp, 4
add ecx, 0xfffffffc
cmp esi, 0xb
ja 0x474983
bt eax, esi
jae 0x474983
movzx ebx, word [ebp - 2]
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x10
call fcn.0049d570
test eax, eax
je 0x475223
mov edx, 1
mov ecx, 0xfa8
mov word [eax], si
mov word [eax + 2], bx
mov dword [esp + 0xfc], 4
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 1
nop dword [eax]
cmp ebp, edi
je 0x474a54
movzx esi, word [ebp]
add ebp, 4
cmp esi, 0xb
ja 0x4749f0
bt ecx, esi
jae 0x4749f0
movzx ebx, word [ebp - 2]
cmp edx, dword [esp + 0xfc]
je 0x474a25
mov word [eax + edx*4], si
mov word [eax + edx*4 + 2], bx
inc edx
mov dword [esp + 0x104], edx
jmp 0x4749f0
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xfc]
mov edx, dword [esp + 0x2c]
push 4
push 2
push 1
call fcn.004f0af0
mov edx, dword [esp + 0x38]
mov ecx, 0xfa8
add esp, 0xc
mov eax, dword [esp + 0x100]
jmp 0x474a12
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0xfc]
test edx, edx
mov dword [esp + 0x10], eax
je 0x475195
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x474bdc
mov eax, dword [esi + 0x20]
mov ebp, dword [esp + 0xc]
shl ecx, 4
mov edx, 3
jmp 0x474abc
add eax, 0x10
add ecx, 0xfffffff0
je 0x474bd1
mov esi, dword [eax]
lea edi, [esi + 0x7fffffff]
cmp edi, 3
cmovae edi, edx
cmp edi, 2
jb 0x474ab0
cmp edi, 3
jne 0x474adb
cmp word [eax + 0xc], 0x16
jne 0x474ab0
cmp esi, 0x80000003
mov esi, dword [esp + 0x1a8]
mov ecx, 0
jne 0x474be2
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x475215
mov esi, dword [eax + 0xc]
mov edi, dword [ecx + 0x2c]
mov ecx, esi
lea esi, [edi + edx*8]
test ecx, ecx
je 0x474bbf
mov ebp, dword [eax + 8]
shl ecx, 2
mov dword [esp + 0x1c], esi
mov ebx, ecx
mov dword [esp + 0x18], ecx
lea eax, [ebp + 2]
mov dword [esp + 0x14], ebp
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
mov esi, ebx
mov ecx, ebx
mov ebx, dword [esp + 8]
cmp ax, 3
je 0x474b76
cmp word [ebp], ax
je 0x474b82
add ebp, 4
add esi, 0xfffffffc
jne 0x474b48
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add edi, 8
cmp edi, esi
jne 0x474b2f
jmp 0x47521c
add ebx, 4
add ecx, 0xfffffffc
je 0x474b56
cmp word [ebx - 2], 3
jne 0x474b6e
cmp word [ebx], dx
jne 0x474b6e
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x1a8]
jmp 0x474bde
mov eax, 8
push dword [edi + eax]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
je 0x4747f1
jmp 0x4747f9
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
add edi, 8
cmp edi, esi
jne 0x474bbf
mov esi, dword [esp + 0x1a8]
xor ecx, ecx
jmp 0x474be2
xor ecx, ecx
mov ebp, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x24]
mov ecx, dword [eax + 0x88]
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], ecx
dec edi
test edx, edx
je 0x474c66
mov ecx, dword [esi + 0x20]
shl edx, 4
mov esi, 3
mov dword [esp + 8], edi
jmp 0x474c18
mov edi, dword [ecx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
mov ebx, dword [ebx*4 + 0x475228]
add ebx, ebp
jmp ebx
and edi, 0xfffffff8
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
test edi, edi
js 0x475223
mov ebx, dword [eax + 0x84]
mov esi, dword [esi + 0x14]
je 0x474c9e
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, edi
call fcn.0049d570
mov ebp, eax
test eax, eax
jne 0x474ca3
jmp 0x475223
mov ebp, 1
mov eax, dword [esp + 8]
lea ebx, [ebx + eax + 8]
push edi
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0xdc]
mov edx, ebx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], edi
push dword [esp + 0x3c]
push dword [esp + 0x20]
lea ebp, [esp + 0x104]
push ebp
push dword [esp + 0x38]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push dword [eax + 0x18]
call fcn.00475260
add esp, 0x20
mov ebx, dword [esp + 4]
cmp byte [ebx + 0x118], 0
lea edx, [ebx + 0x28]
lea ecx, [ebx + 0xd8]
lea eax, [ebx + 0x44]
lea esi, [ebx + 0x1c]
je 0x474f0e
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x138
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x475223
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x8c4110
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
jmp 0x4750fb
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x13c
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x475223
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x8c4134
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
mov byte [ebp + 0x138], 0
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1a8]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
test edx, edx
mov byte [ecx], 0x16
je 0x475129
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [edi]
mov ebp, dword [esp + 4]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x47516e
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x475238]
jmp ecx
test dword [edi + 4], 0x7fffffff
je 0x4748f4
mov eax, 8
mov eax, dword [edi + eax]
mov dword [esp], eax
jmp 0x4748e3
xor ebx, ebx
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x1a4]
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], 0x80000001
mov dword [esp + 0x100], 0x60001
xor eax, eax
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x1a8]
lea edx, [esp + 0xfc]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00459840
add esp, 4
mov eax, dword [esp]
test ebx, ebx
mov byte [esi + 0x251], 1
mov byte [eax], 8
mov dword [eax + 4], 0x80000006
je 0x47479c
push dword [esp + 0x10]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x47479c
xor ecx, ecx
jmp 0x474be2
xor ecx, ecx
jmp 0x474b8b
ud2