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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
push edi
mov esi, ecx
mov byte [esp + 0x10], 0
push 0
lea ecx, [esp + 0x1c]
call fcn.0040d72a
sub esp, 0x10
mov ecx, esp
push ecx
push ecx
mov eax, esp
and dword [eax], 0
and dword [eax + 4], 0
call fcn.0040b709
pop ecx
pop ecx
mov eax, 0xa5620fee
mov dword [esp + 0x30], 0x873cdfad
mov ecx, 0xffb2cff4
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], 0x3485dfff
movaps xmm1, xmmword [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0xee5bb0c1
mov dword [esp + 0x54], 0x3485ac91
pxor xmm1, xmmword [esp + 0x50]
push eax
movaps xmmword [esp + 0x34], xmm1
call fcn.0040efd9
mov ecx, eax
call fcn.0040b5bd
lea eax, [esp + 8]
xor ecx, ecx
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push 1
push ecx
mov dword [esp + 0x18], ecx
call dword [0x4d6018]
test eax, eax
je 0x4799c4
xor edi, edi
cmp dword [esp + 0xc], edi
jbe 0x4799ba
mov eax, dword [esp + 8]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4799af
cmp dword [eax + 0x30], 0
je 0x4799af
cmp dword [eax + 4], 1
je 0x479631
cmp dword [eax + 4], 4
jne 0x4799af
mov eax, dword [eax + 0x18]
cmp eax, 0xc8
jae 0x4799af
test eax, eax
je 0x4799af
and dword [esp + 0x98], 0
lea ecx, [esp + 0x98]
and dword [esp + 0xa8], 0
push 0
push eax
mov dword [esp + 0xb4], 0xf
call fcn.0040c8ab
mov eax, dword [esp + 8]
lea ecx, [esp + 0x98]
cmp dword [esp + 0xac], 0x10
cmovae ecx, dword [esp + 0x98]
mov eax, dword [eax + edi*4]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push ecx
call fcn.00437d90
add esp, 0xc
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
push 0
call fcn.0040d72a
mov eax, 0xa5620fee
mov dword [esp + 0x50], 0x8834c2b1
mov ecx, 0xffb2cff4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
sub esp, 0x10
mov dword [esp + 0x64], 0x34e0c0f8
movaps xmm1, xmmword [esp + 0x60]
mov dword [esp + 0xcc], ecx
mov ecx, esp
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], 0xee5bb0c1
mov dword [esp + 0xc4], 0x3485ac91
pxor xmm1, xmmword [esp + 0xc0]
push 0x4ea993
movaps xmmword [esp + 0x64], xmm1
call fcn.0040f4a2
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.0040efd9
mov ecx, eax
call fcn.0040b5bd
mov eax, dword [esp + 8]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax + edi*4]
xor eax, eax
mov byte [ecx], al
add edx, 8
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call fcn.00418207
mov edx, 0x3485ac91
mov dword [esp + 0x70], 0xee37c2b4
mov eax, 0xa5620fee
mov dword [esp + 0x74], edx
mov ecx, 0xffb2cff4
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
movaps xmm1, xmmword [esp + 0x70]
mov dword [esp + 0xd8], eax
lea eax, [esp + 0x70]
mov dword [esp + 0xdc], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd0], 0xee5bb0c1
pxor xmm1, xmmword [esp + 0xd0]
push eax
movaps xmmword [esp + 0x74], xmm1
call fcn.0040efd9
mov ecx, eax
call fcn.0040b5bd
mov eax, dword [esp + 8]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax + edi*4]
add edx, 0x30
xor eax, eax
mov byte [ecx], al
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call fcn.00418207
mov eax, 0xa5620fee
mov dword [esp + 0x80], 0x873cdfad
mov ecx, 0xffb2cff4
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x84], 0x3485acff
movaps xmm1, xmmword [esp + 0x80]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0x80]
mov dword [esp + 0xec], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xee5bb0c1
mov dword [esp + 0xe4], 0x3485ac91
pxor xmm1, xmmword [esp + 0xe0]
push eax
movaps xmmword [esp + 0x84], xmm1
call fcn.0040efd9
mov ecx, eax
call fcn.0040b5bd
mov eax, 0xa5620fee
mov dword [esp + 0x80], 0x9d28d1b1
mov ecx, 0xffb2cff4
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
sub esp, 0x10
mov dword [esp + 0x94], 0x50f7c3e6
movaps xmm1, xmmword [esp + 0x90]
mov dword [esp + 0xf8], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xfc], ecx
mov ecx, esp
mov dword [esp + 0xf0], 0xee5bb0c1
mov dword [esp + 0xf4], 0x3485ac91
pxor xmm1, xmmword [esp + 0xf0]
push eax
movaps xmmword [esp + 0x94], xmm1
call fcn.0040f39b
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x34]
call fcn.0040efd9
mov ecx, eax
call fcn.0040b5bd
mov eax, 0xa5620fee
mov dword [esp + 0x40], 0x873cdfad
mov ecx, 0xffb2cff4
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], 0x3485dfff
movaps xmm1, xmmword [esp + 0x40]
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xf0], 0xee5bb0c1
mov dword [esp + 0xf4], 0x3485ac91
pxor xmm1, xmmword [esp + 0xf0]
push eax
movaps xmmword [esp + 0x44], xmm1
call fcn.0040efd9
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0040b36f
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.0040d446
mov eax, dword [esp + 0xac]
cmp eax, 0x10
jb 0x4799af
mov ecx, dword [esp + 0x98]
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
cmp eax, 0x1000
jb 0x4799a6
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004076c3
mov eax, dword [esp + 0x40]
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.0041e009
pop ecx
pop ecx
inc edi
cmp edi, dword [esp + 0xc]
jb 0x479608
push dword [esp + 8]
call dword [0x4d6020]
mov al, byte [esp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x1c]
mov byte [esi], al
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x18]
push 0
mov dword [esi + 8], eax
mov byte [esp + 0x14], 0
movlpd qword [esp + 0x1c], xmm0
call fcn.0040d446
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret