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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd4
mov edi, dword [esp + 0xe8]
mov dword [esp], edx
mov ebp, ecx
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov ecx, esi
push dword [edi + 8]
call fcn.00470ee4
pop ecx
test al, 1
je 0x47427e
mov ebx, edx
mov dword [esp + 8], ebp
lea ebp, [esp + 0x14]
mov edx, edi
mov ecx, ebp
push 7
call fcn.00470f23
pop eax
cmp byte [ebp], 0
je 0x47428f
mov bl, byte [esp + 0x15]
mov eax, dword [esp + 8]
mov byte [eax + 1], bl
mov byte [eax], 1
jmp 0x474284
mov word [ebp], 1
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebp, dword [edi]
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, ebp
mov dword [esp + 0x44], eax
mov eax, dword [eax + 4]
mov dword [esp + 0xc], edi
sub ecx, eax
neg ecx
cmp ebp, eax
sbb edi, 0
mov edi, dword [esp + 4]
cmovb edx, ecx
cmp edi, edx
jbe 0x474370
mov dword [esp], ebp
mov bl, 2
mov eax, dword [0x7f50bc]
cmp eax, 5
jb 0x474272
mov ebp, dword [0x7f1440]
lea esi, [esp + 0x70]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esi], 5
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call fcn.00513e14
mov edi, eax
push esi
mov esi, edx
push eax
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x474272
mov eax, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0x50], edi
mov edi, dword [0x7f1440]
mov dword [esp + 0x10], esi
mov dword [esp + 0x84], eax
movsd qword [esp + 0x7c], xmm0
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
test esi, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], esi
je 0x4744ae
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
and dword [esp + 0x24], 0
xor esi, esi
inc esi
jmp 0x4744b2
mov edi, ebp
sub edi, esi
test bl, bl
js 0x4743a0
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xe8]
mov edx, esi
call fcn.005dd1b4
mov eax, dword [esp + 8]
and dword [eax + 4], 0
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], esi
mov byte [eax], 0
jmp 0x474284
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edi
mov ecx, ebp
push dword [esp + 0x44]
call fcn.005dd074
pop ecx
mov ecx, eax
push 0x70fe74
push dword [esp + 8]
call fcn.0046f971
pop ecx
pop ecx
mov ecx, dword [esp]
mov ebp, eax
lea eax, [esp + 0x14]
mov esi, edx
add edx, edx
and dword [eax], 0
mov byte [eax + 4], 0
add ecx, 0x20
mov dword [esp], ecx
call fcn.00455bc8
mov edi, dword [esp + 0xe8]
test esi, esi
je 0x47444a
mov al, byte [ebp]
lea ecx, [esp + 0x14]
mov byte [esp + 0xc], al
shr al, 4
movzx edx, al
call fcn.0047480f
mov ebx, eax
cmp bl, 2
je 0x474462
test bl, 1
je 0x47441d
mov ecx, dword [esp]
movzx edx, bh
call fcn.005083bc
mov al, byte [esp + 0xc]
lea ecx, [esp + 0x14]
and al, 0xf
movzx edx, al
call fcn.0047480f
mov ebx, eax
cmp bl, 2
je 0x474462
test bl, 1
je 0x474446
mov ecx, dword [esp]
movzx edx, bh
call fcn.005083bc
inc ebp
dec esi
jmp 0x4743ec
cmp dword [esp + 0x14], 0
je 0x474617
cmp byte [esp + 0x18], 0
mov bh, 6
jne 0x474617
mov ebp, dword [esp + 8]
mov edx, dword [esp + 4]
mov al, 1
mov dword [esp], eax
mov ecx, edi
call fcn.005dd1b4
mov eax, dword [esp]
movsd xmm1, qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
mov byte [ebp], al
mov byte [ebp + 1], bh
movsd qword [ebp + 0xa], xmm1
movsd xmm1, qword [esp + 0x24]
movzx eax, word [esp + 0x2c]
movsd qword [ebp + 2], xmm0
movsd qword [ebp + 0x12], xmm1
mov word [ebp + 0x1a], ax
jmp 0x474284
xor esi, esi
xor eax, eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0xa0]
mov dword [edx], eax
push 0x70fe84
call fcn.0052f9f9
pop eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x58], 0x70feac
mov dword [esp + 0x5c], 1
and dword [esp + 0x68], 0
mov dword [esp + 0x60], 0x7b0e68
and dword [esp + 0x64], 0
mov dword [esp + 4], ebp
cmp esi, ecx
jae 0x474519
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ebp, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], esi
inc esi
jmp 0x47451d
mov ebp, ecx
xor eax, eax
add edi, 0x1c
lea edx, [esp + 0x14]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x4c], edi
mov dword [edx], eax
push 0x70fe84
call fcn.0052f9f9
pop eax
xor edi, edi
cmp esi, ebp
mov eax, 0
jae 0x474563
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], esi
lea esi, [esp + 0x14]
lea ecx, [esp + 0x88]
mov dword [esi], eax
mov edx, esi
push 0x70fe84
call fcn.0052f9f9
pop eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp]
lea edx, [esp + 0x88]
mov eax, dword [eax + 4]
mov ecx, eax
sub ecx, ebp
cmp ebp, eax
lea eax, [esp + 0x9c]
sbb dword [esp + 0xc], 0
cmovb edi, ecx
lea ecx, [esp + 0xa0]
mov dword [esi], ecx
lea ecx, [esp + 0x58]
mov dword [eax], edi
mov dword [esi + 4], ecx
lea ecx, [esp + 0xb4]
mov dword [esi + 8], 0x70f404
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x54]
mov dword [esi + 0x10], ecx
mov ecx, 0x70f3bc
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0xc8]
mov edx, dword [esp + 0x50]
mov dword [eax], esi
mov dword [eax + 4], 3
lea esi, [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 4]
push eax
push esi
mov eax, dword [esp + 0x18]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
jmp 0x474272
mov edx, dword [esp]
lea esi, [esp + 0x88]
mov ecx, esi
call fcn.00455aef
cmp dword [esi], 0
mov ebp, dword [esp + 8]
je 0x47467d
lea esi, [esp + 0x58]
lea edx, [esp + 0x88]
mov ecx, esi
call fcn.0050b30a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [esp], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
movsd xmm1, qword [esi + 8]
movsd xmm0, qword [esi]
movsd qword [esp + 0x1e], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x16], xmm0
movsd qword [esp + 0x26], xmm1
jmp 0x47446f
mov bh, byte [esp + 0x8c]
jmp 0x474466