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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
call 0x478968
pop eax
mov esi, ecx
mov dword [esp + 0x10], eax
movzx eax, byte [edx]
cmp eax, 0x14
mov dword [esp + 0x14], eax
je 0x478f6b
cmp eax, 0x15
jne 0x47924f
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esp + 0x8c], edx
mov edx, dword [edx + 0xc]
mov dword [esp + 0xb0], esi
lea esi, [esp + 0x70]
shl edx, 5
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
add edx, eax
mov al, 3
mov dword [esi + 0xc], edx
mov byte [esi - 0x10], 0x16
mov dword [esi + 0x10], 0
lea esi, [esp + 0x47]
mov dword [esp + 8], eax
mov ax, 0x1a
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x7c]
je 0x478daa
lea ecx, [eax + 0x20]
mov dword [esp + 0x78], ecx
movzx ebx, byte [eax]
cmp ebx, 0x16
je 0x478daa
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x4f], xmm0
movsd xmm0, qword [eax + 0x11]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [eax + 1]
movsd xmm1, qword [eax + 9]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [eax + 1]
movsd xmm1, qword [eax + 8]
inc dword [esp + 0x80]
movsd xmm2, qword [esi + 8]
cmp byte [esp + 0x60], 0x16
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [esi]
movsd qword [esp + 0x97], xmm1
movsd qword [esp + 0x20], xmm2
movsd qword [esp + 0x18], xmm0
je 0x478a65
lea ecx, [esp + 0x60]
call fcn.00431610
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
movsd xmm2, qword [esp + 0x97]
mov byte [esp + 0x38], bl
dec ebx
cmp ebx, 0xe
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esi - 7], xmm2
movsd qword [esp + 0x68], xmm1
movsd qword [esi - 0xe], xmm0
ja 0x4792dc
mov eax, dword [ebx*4 + 0x479314]
add eax, dword [esp + 0x10]
jmp eax
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov ebx, 2
movsd xmm0, qword [esp + 0x74]
mov dword [esp + 4], 0
cmp ax, 0x1a
movsd qword [esp + 0xe8], xmm0
cmove eax, ecx
mov cl, byte [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
cmp al, 3
movzx eax, al
cmovne ebx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4790ec
mov edx, dword [esp + 0xf0]
movsd xmm0, qword [esp + 0xe8]
mov dword [esp + 0xb8], eax
mov esi, dword [esp + 0x80]
mov byte [esp + 8], cl
movsd qword [esp + 0xbc], xmm0
mov dword [esp + 0xc4], edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc0]
cmp eax, edx
je 0x4790a9
mov dword [esp + 4], ebx
lea ebx, [esp + 0x40]
xor esi, esi
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea edi, [eax + 0x20]
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [eax + 0x18]
cmp byte [esp + 0xc8], 0x16
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xd8], xmm0
je 0x4790b5
movsd xmm0, qword [eax + 0x18]
mov ecx, ebx
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esp + 0x28]
mov dword [esp + 0x38], esi
inc esi
movsd qword [esp + 0x98], xmm1
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esp + 0xa0]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
movsd xmm1, qword [esp + 0xa0]
movsd xmm0, qword [esp + 0xa8]
movsd xmm2, qword [esp + 0x90]
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [esp + 0x98]
movsd qword [ebx + 0x18], xmm0
movsd qword [ebx], xmm2
movsd qword [ebx + 8], xmm1
call fcn.00431610
lea ecx, [esp + 0x50]
call fcn.00431610
cmp edi, dword [esp + 0x10]
mov eax, edi
jne 0x478e54
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc0], eax
jmp 0x4790ab
mov ebx, esi
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edi, edx
lea edx, [esp + 0x60]
shl esi, 4
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
add esi, eax
mov dword [edx + 0xc], esi
lea esi, [esp + 0x38]
mov dword [edx + 0x10], 0
mov ecx, esi
call fcn.0043585a
cmp word [esi], 0
je 0x478fc7
mov eax, dword [esp + 0x3c]
mov esi, ebx
cmp dword [esp + 0x60], 0
mov dword [esp + 4], eax
je 0x4791fd
lea ecx, [esp + 0x60]
call fcn.005fd5da
jmp 0x4791fd
movzx eax, word [esp + 0x3a]
mov esi, ebx
cmp ax, 0x1a
mov dword [esp + 0xc], eax
je 0x4792a3
cmp dword [esp + 0x60], 0
je 0x479267
mov ecx, dword [esp + 0x68]
cmp ecx, dword [esp + 0x6c]
je 0x479267
lea eax, [ecx + 0x10]
mov dword [esp + 0x68], eax
movzx eax, byte [ecx]
cmp eax, 0x16
je 0x479267
movsd xmm0, qword [ecx + 1]
movsd xmm1, qword [ecx + 8]
mov byte [esp + 0x18], al
movsd qword [esp + 0x97], xmm1
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [ecx + 1]
movsd xmm1, qword [ecx + 8]
inc dword [esp + 0x70]
cmp eax, 0x10
movsd qword [esp + 0x19], xmm0
movsd qword [esp + 0x20], xmm1
je 0x479059
cmp eax, 0x11
je 0x47912c
cmp eax, 0x12
jne 0x479186
cmp al, 0x11
je 0x479066
lea ecx, [esp + 0x18]
call fcn.00431610
mov bl, 2
jmp 0x4791d0
mov dword [esp + 4], eax
cmp dword [esp + 0x70], 0
je 0x479085
lea ecx, [esp + 0x70]
call fcn.005fd599
cmp byte [esp + 0x60], 0x16
mov esi, dword [esp + 0xb0]
je 0x47909c
lea ecx, [esp + 0x60]
call fcn.00431610
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
jmp 0x479113
xor esi, esi
mov byte [esp + 0xc8], 0x16
jmp 0x4790c0
mov ebx, dword [esp + 4]
mov dword [esp + 0xc0], edi
lea ecx, [esp + 0xc8]
call fcn.0042dc3f
lea ecx, [esp + 0xb8]
call fcn.005fd599
mov cl, byte [esp + 8]
test esi, esi
mov dword [esp + 4], 0
jne 0x479278
cmp cl, 0x16
je 0x4790fa
lea ecx, [esp + 0x60]
call fcn.00431610
cmp dword [esp + 4], 0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
je 0x47911e
xor ebx, ebx
mov dword [esp + 0xc], edx
jmp 0x479207
movzx edx, bl
mov bl, 1
mov dword [esp + 4], edx
jmp 0x479207
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc8]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
call fcn.005fe0b4
lea ecx, [esp + 0xc8]
mov al, byte [ecx]
mov byte [esp + 8], al
mov al, byte [ecx + 1]
mov byte [esp + 0x10], al
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
push esi
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov cl, byte [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4791c2
movsd xmm0, qword [esp + 0x90]
movsd xmm1, qword [esp + 0x97]
lea esi, [esp + 0xc8]
lea edx, [esp + 0x38]
mov ecx, esi
mov byte [edx], al
movsd qword [edx + 1], xmm0
movsd qword [edx + 8], xmm1
call fcn.005fe0b4
mov al, byte [esi + 1]
mov cl, byte [esi]
mov byte [esp + 0x10], al
mov eax, dword [esi + 4]
mov esi, ebx
mov bl, byte [esp + 0x10]
test cl, cl
jne 0x478faa
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x68]
lea ecx, [esp + 0x38]
mov dword [ecx + 0x10], eax
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
call fcn.005fdbac
test eax, eax
mov dword [esp + 4], eax
je 0x479240
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
and al, 0x1e
cmp al, 0x14
je 0x479214
mov ecx, edi
call fcn.00431610
test bl, bl
je 0x47922b
mov eax, dword [esp + 0xc]
mov word [esi + 2], ax
mov eax, dword [esp + 4]
mov byte [esi + 4], al
xor eax, eax
jmp 0x479235
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov word [esi], ax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, bl
mov bl, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
jmp 0x479207
mov ecx, edx
lea edx, [esp + 0xc8]
push 0x6620a0
call fcn.0065f8ec
add esp, 4
jmp 0x47922f
xor ecx, ecx
inc ecx
jmp 0x4792a5
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x38]
add esi, eax
mov dword [edx], eax
mov ecx, esi
push 0x6670b4
call fcn.0065f813
mov cl, byte [esp + 0xc]
add esp, 4
mov dword [esp + 4], eax
jmp 0x4790ec
xor ecx, ecx
mov edx, 0x6633b0
push 0x661fe8
call fcn.0065f813
add esp, 4
jmp 0x478faa
lea ecx, [esp + 0x38]
lea edx, [esp + 0xc8]
push 0x662210
call fcn.0065f8ec
add esp, 4
jmp 0x479071