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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
push esi
mov esi, ecx
push edi
push 0
mov dword [esp + 0x80], esi
lea ecx, [esi + 8]
mov byte [esi], 0
call fcn.0040d72a
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
lea edx, [esp + 0x74]
cmovae ecx, dword [ebp + 0x14]
call fcn.004946ab
test eax, eax
jne 0x48157b
mov edx, 0x3485ac91
mov dword [esp + 0x50], 0xee5bb0fa
mov eax, 0xa5620fee
mov dword [esp + 0x54], edx
mov ecx, 0xffb2cff4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov edi, 0xee5bb0c1
movaps xmm1, xmmword [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edi
pxor xmm1, xmmword [esp + 0x40]
movaps xmmword [esp + 0x50], xmm1
mov dword [esp + 0x30], 0xab17f592
mov dword [esp + 0x34], 0x1ea5f8d2
mov dword [esp + 0x38], 0xea3049ce
mov dword [esp + 0x3c], 0xffb2efb9
movaps xmm1, xmmword [esp + 0x30]
mov dword [esp + 0x48], eax
lea eax, [ebp + 0x2c]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], edi
pxor xmm1, xmmword [esp + 0x40]
push eax
movaps xmmword [esp + 0x34], xmm1
call fcn.0040ef10
pop ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.0040c8eb
push eax
lea ecx, [esp + 0x13c]
call fcn.00407752
lea ecx, [esp + 0x18]
call fcn.004077ce
cmp dword [esp + 0x14c], 0x10
lea eax, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x140]
cmovae edx, dword [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.004d589a
mov edi, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x48155f
jmp 0x48154f
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0040d72a
test edi, edi
je 0x481536
movzx ecx, word [edi + 0x30]
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x481536
xor esi, esi
mov dword [esp + 0x14], esi
mov edx, eax
mov ecx, edi
call fcn.004d5872
cmp eax, 3
jne 0x481123
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004d5806
and dword [esp + 0x18], 0
mov edx, eax
and dword [esp + 0x28], 0
mov ecx, edx
mov dword [esp + 0x2c], 0xf
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48101c
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00407850
mov edi, dword [ebp + 8]
mov edx, 0x3485ac91
mov eax, 0xa5620fee
mov dword [esp + 0x84], edx
mov ecx, 0xffb2cff4
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
sub esp, 0x10
mov dword [esp + 0x90], 0xb109e492
add edi, esi
movaps xmm1, xmmword [esp + 0x90]
mov esi, esp
mov dword [esp + 0xf4], edx
lea edx, [esp + 0x90]
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 0xee5bb0c1
pxor xmm1, xmmword [esp + 0xf0]
push eax
movaps xmmword [esp + 0x94], xmm1
call fcn.0040ef5d
pop ecx
push eax
mov ecx, esi
call fcn.0040f469
push edi
lea ecx, [esp + 0x44]
call fcn.0040b4c5
mov ecx, eax
call fcn.0040b5bd
lea ecx, [esp + 0xc8]
call fcn.004077ce
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x481512
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], ecx
cmp eax, 0x1000
jb 0x481509
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004076c3
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
mov ecx, dword [esp + 0x50]
jmp 0x481509
cmp eax, 1
jne 0x4811fe
mov edx, dword [esp + 0x10]
mov ecx, edi
call 0x4d5c26
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.0040881a
mov ecx, eax
mov dword [esp + 0x90], 0xb10ffe88
mov edi, 0x3485ac91
mov dword [esp + 0xf0], 0xee5bb0c1
mov dword [esp + 0x94], edi
mov eax, 0xa5620fee
mov edx, 0xffb2cff4
mov dword [esp + 0xf4], edi
mov edi, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0xac], edx
add edi, esi
mov dword [esp + 0xa8], eax
mov esi, esp
movaps xmm1, xmmword [esp + 0xa0]
mov dword [esp + 0x10c], edx
lea edx, [esp + 0xa0]
mov dword [esp + 0x108], eax
pxor xmm1, xmmword [esp + 0x100]
push ecx
lea ecx, [esp + 0xdc]
movaps xmmword [esp + 0xa4], xmm1
call fcn.0040ef5d
pop ecx
push eax
mov ecx, esi
call fcn.0040f469
push edi
lea ecx, [esp + 0x44]
call fcn.0040b4c5
mov ecx, eax
call fcn.0040b5bd
lea ecx, [esp + 0xc8]
call fcn.004077ce
lea ecx, [esp + 0x18]
call fcn.004077ce
jmp 0x481512
cmp eax, 2
jne 0x481324
mov edx, dword [esp + 0x10]
mov ecx, edi
call 0x4d5bfd
push ecx
push ecx
movsd qword [esp], xmm0
mov edi, 0x4f1c08
push edi
movsd qword [esp + 0x5c], xmm0
call fcn.00407ca5
add esp, 0xc
mov dword [esp + 0x2c], 0xf
mov esi, eax
lea ecx, [esp + 0x18]
xor eax, eax
mov dword [esp + 0x18], eax
push eax
push esi
mov dword [esp + 0x30], eax
call fcn.0040dea7
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
movsd xmm0, qword [esp + 0x50]
lea eax, [esi + 1]
cmovae ecx, dword [esp + 0x18]
push ecx
push ecx
movsd qword [esp], xmm0
push edi
push eax
push ecx
call fcn.00407c70
mov edi, dword [ebp + 8]
mov edx, 0x3485ac91
add edi, dword [esp + 0x28]
mov eax, 0xa5620fee
mov ecx, 0xffb2cff4
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], eax
add esp, 4
mov dword [esp + 0xbc], ecx
mov esi, esp
mov dword [esp + 0xb0], 0xb117f285
movaps xmm1, xmmword [esp + 0xb0]
mov dword [esp + 0x114], edx
lea edx, [esp + 0xb0]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x11c], ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x110], 0xee5bb0c1
pxor xmm1, xmmword [esp + 0x110]
push eax
movaps xmmword [esp + 0xb4], xmm1
call fcn.0040ef5d
pop ecx
push eax
mov ecx, esi
call fcn.0040f469
push edi
lea ecx, [esp + 0x44]
call fcn.0040b4c5
mov ecx, eax
call fcn.0040b5bd
lea ecx, [esp + 0xc8]
jmp 0x4814ce
cmp eax, 5
jne 0x4813d3
mov dword [esp + 0xb0], 0xa217e58f
mov edx, 0x3485ac91
mov dword [esp + 0xb4], edx
mov eax, 0xa5620fee
mov dword [esp + 0xb8], eax
mov ecx, 0xffb2cff4
mov dword [esp + 0xbc], ecx
sub esp, 0x10
movaps xmm1, xmmword [esp + 0xc0]
mov dword [esp + 0x128], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x12c], ecx
mov ecx, esp
mov dword [esp + 0x124], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x120], 0xee5bb0c1
pxor xmm1, xmmword [esp + 0x120]
movaps xmmword [esp + 0xc0], xmm1
mov dword [esp + 0x60], eax
xor eax, eax
mov byte [ecx], al
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call fcn.00418207
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x40]
add eax, esi
push eax
call fcn.0040b4c5
mov ecx, eax
call fcn.0040b5bd
jmp 0x481516
cmp eax, 4
jne 0x481516
mov edx, dword [esp + 0x10]
mov ecx, edi
call 0x4d5bdd
mov edx, dword [esp + 0x10]
mov ecx, edi
mov esi, eax
call 0x4d5ad8
and dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
push eax
push esi
mov dword [esp + 0x34], 0xf
call fcn.00407850
cmp dword [esp + 0x2c], 0x10
lea edx, [esp + 0x18]
push dword [esp + 0x28]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.0045b8bb
mov edi, dword [ebp + 8]
mov ecx, eax
add edi, dword [esp + 0x18]
mov eax, 0xa5620fee
mov edx, 0xffb2cff4
mov dword [esp + 0x44], 0xac14fc83
mov dword [esp + 0x50], edx
sub esp, 0xc
mov dword [esp + 0x54], 0x3485acce
mov esi, esp
mov dword [esp + 0x58], eax
movaps xmm1, xmmword [esp + 0x50]
mov dword [esp + 0x13c], edx
lea edx, [esp + 0x50]
mov dword [esp + 0x138], eax
mov dword [esp + 0x130], 0xee5bb0c1
mov dword [esp + 0x134], 0x3485ac91
pxor xmm1, xmmword [esp + 0x130]
push ecx
lea ecx, [esp + 0xdc]
movaps xmmword [esp + 0x54], xmm1
call fcn.0040ef5d
pop ecx
push eax
mov ecx, esi
call fcn.0040f469
push edi
lea ecx, [esp + 0x44]
call fcn.0040b4c5
mov ecx, eax
call fcn.0040b5bd
lea ecx, [esp + 0xc8]
call fcn.004077ce
lea ecx, [esp + 0x50]
call fcn.004077ce
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x481512
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x50], eax
cmp eax, 0x1000
jb 0x481509
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004076c3
mov eax, dword [esp + 0x58]
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.0041e009
pop ecx
pop ecx
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x18
inc eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x78]
jl 0x480fe6
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0040b36f
push dword [esp + 0x30]
lea ecx, [esp + 0x3c]
call fcn.0040d446
mov ecx, edi
call 0x4d5af8
cmp eax, 0x64
je 0x480fb2
mov ecx, edi
call fcn.004d5828
mov ecx, dword [esp + 0x74]
call fcn.004945bd
lea ecx, [esp + 0x138]
call fcn.004077ce
lea ecx, [ebp + 0x14]
call fcn.004077ce
lea ecx, [ebp + 0x2c]
call fcn.004077ce
lea ecx, [ebp + 8]
call fcn.0040da76
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret