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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x888
mov eax, dword [0x57ed10]
push ebx
push ebp
push esi
mov ecx, dword [eax]
xor ebp, ebp
push edi
push eax
mov dword [esp + 0x3c], 0x42fa80
mov dword [esp + 0x40], 0x42fa88
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 2
call dword [ecx + 0x10]
test eax, eax
je 0x407611
nop word [eax + eax]
imul esi, dword [0x437308], 0x26f4
mov eax, dword [0x57ed10]
mov ecx, dword [eax]
add esi, 0x437310
push esi
push 2
push ebp
push eax
mov dword [esp + 0x3c], esi
call dword [ecx + 0x14]
mov ecx, dword [0x57ed10]
lea eax, [esi + 0x42c]
push eax
push ebp
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [0x57ed10]
xor edi, edi
mov dword [esi + 0x43c], 0
mov dword [esi + 0x26f0], 0
push ebp
mov ecx, dword [eax]
push eax
mov dword [esp + 0x24], edi
call dword [ecx + 0x18]
mov ecx, dword [esi + 0x438]
xor edx, edx
mov dword [esp + 0x14], eax
mov ebx, 1
mov dword [esp + 0x118], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], edx
test eax, eax
je 0x4071c7
lea ecx, [esp + 0x25c]
mov dword [esp + 0x18], ecx
mov eax, dword [0x57ed10]
lea esi, [esp + 0x50]
push esi
push edx
push ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
movaps xmm0, xmmword [0x42fc80]
xor eax, eax
mov ecx, dword [esp + 0x5c]
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0x15
mov dword [esp + 0x74], 0x16
cmp dword [esp + eax*4 + 0x60], ecx
je 0x407132
inc eax
cmp eax, 6
jl 0x407124
jmp 0x4071b0
mov esi, dword [esp + 0x54]
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x50]
je 0x40715f
lea eax, [esp + 0x25c]
cmp dword [eax - 4], edi
jne 0x407155
cmp dword [eax], esi
jne 0x407155
cmp dword [eax + 8], ecx
je 0x40715f
inc edx
add eax, 0x10
cmp edx, dword [esp + 0x1c]
jb 0x407147
cmp edx, dword [esp + 0x1c]
jne 0x4071ac
mov eax, dword [esp + 0x18]
mov dword [eax - 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax], esi
inc edi
mov dword [eax + 8], ecx
mov dword [eax + 4], 0
add eax, 0x10
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x40719e
nop
cmp ecx, dword [esp + eax*4 + 0x118]
je 0x40719e
inc eax
cmp eax, ebx
jb 0x407190
cmp eax, ebx
jne 0x4071b0
mov dword [esp + ebx*4 + 0x118], ecx
inc ebx
jmp 0x4071b0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [esp + 0x14]
jb 0x4070f0
mov dword [esp + 0x28], ebx
push 0x407980
push 0x10
lea eax, [esp + 0x260]
push edi
push eax
call fcn.00418d40
add esp, 0x10
test edi, edi
je 0x407286
mov edx, 0x56ed14
mov dword [esp + 0x24], edi
mov esi, 0x56ed10
mov dword [esp + 0x18], edx
lea ebx, [esp + 0x25c]
mov dword [esp + 0x20], esi
xor eax, eax
lea edi, [edx - 4]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi], eax
xor esi, esi
cmp dword [esp + 0x14], eax
jbe 0x407260
mov edi, edx
nop dword [eax]
mov eax, dword [0x57ed10]
lea edx, [esp + 0x40]
push edx
push esi
push ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebx - 4]
cmp eax, dword [esp + 0x40]
jne 0x407255
mov eax, dword [ebx]
cmp eax, dword [esp + 0x44]
jne 0x407255
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 0x4c]
jne 0x407255
mov eax, dword [esp + 0x48]
mov dword [edi], eax
add edi, 4
inc esi
cmp esi, dword [esp + 0x14]
jb 0x407220
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
add edx, 0x200
add esi, 0x200
mov dword [esp + 0x18], edx
add ebx, 0x10
mov dword [esp + 0x20], esi
sub dword [esp + 0x24], 1
jne 0x407204
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
imul eax, dword [edx + 0x43c], 0x1158
lea edi, [edx + 0x440]
mov edx, dword [0x57ed10]
mov ecx, dword [esp + ecx + 0x30]
mov dword [edi + eax], ecx
mov esi, dword [edx]
add edi, eax
lea eax, [edi + 4]
push eax
push ecx
push ebp
push edx
call dword [esi + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [edi + 0xdc], 0
mov dword [edi + 0x1148], 0
mov dword [edi + 0x114c], 0
mov eax, dword [esp + ecx + 0x38]
xor ecx, ecx
mov dword [edi + 0xd8], eax
xor eax, eax
mov dword [edi + 0x1150], 0
mov dword [edi + 0x1154], 0
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x40749c
nop dword [eax + eax]
mov ebx, dword [esp + ecx*4 + 0x118]
lea esi, [esp + 0x208]
mov eax, dword [0x57ed10]
lea esi, [esi + ecx*4]
push 0
push ebx
push ebx
push dword [edi]
mov dword [esp + ecx*4 + 0x88], 0
mov dword [esp + ecx*4 + 0xd8], 0
mov dword [esp + ecx*4 + 0x178], 0
mov dword [esp + ecx*4 + 0x1c8], 0
mov ecx, dword [eax]
push ebp
push eax
mov dword [esi], 0
call dword [ecx + 0x24]
test eax, eax
js 0x407481
mov ecx, dword [edi + 0x20]
xor eax, eax
test ecx, 0x10000
je 0x4073d6
mov edx, dword [esp + 0x14]
and ecx, 0x100000
je 0x40739e
mov dword [esp + edx*4 + 0xc8], 0x50
mov eax, 1
mov dword [esp + edx*4 + 0x78], 1
test ecx, ecx
je 0x4073ba
mov dword [esp + edx*4 + 0xc8], 0x40
mov eax, 1
mov dword [esp + edx*4 + 0x78], 1
test eax, eax
jne 0x4073f1
mov dword [esp + edx*4 + 0xc8], 0x80
mov eax, 1
mov dword [esp + edx*4 + 0x78], 1
test eax, eax
jne 0x4073f1
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xc8], 0x20
mov dword [esp + eax*4 + 0x78], 1
cmp byte [0x57ed14], 0
je 0x407418
mov edx, dword [edi]
mov ecx, ebp
push esi
push ebx
call fcn.004079c0
add esp, 8
test eax, eax
jne 0x407418
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x78], 0
xor esi, esi
nop word [eax + eax]
cmp esi, 1
je 0x40747b
mov eax, dword [0x57ed10]
push esi
push 0
push ebx
push dword [edi]
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x2c]
test eax, eax
js 0x407450
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + ecx*4 + 0x168]
bts eax, esi
mov dword [esp + ecx*4 + 0x168], eax
mov eax, dword [0x57ed10]
push esi
push 1
push ebx
push dword [edi]
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x2c]
test eax, eax
js 0x40747b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + ecx*4 + 0x1b8]
bts eax, esi
mov dword [esp + ecx*4 + 0x1b8], eax
inc esi
cmp esi, 0x11
jl 0x407420
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jb 0x407310
mov eax, dword [edi + 0xdc]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4075c1
lea esi, [esp + 0x258]
mov dword [esp + 0x24], ecx
mov eax, ecx
xor edx, edx
test ebx, ebx
je 0x4075ab
nop
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + edx*4 + 0x118]
jne 0x40759e
cmp dword [esp + edx*4 + 0x78], 1
jne 0x40759e
mov eax, dword [edi + 0xdc]
add eax, 8
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi]
mov dword [edi + ecx*4], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 4]
mov dword [edi + ecx*4 + 0xe4], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [edi + ecx*4 + 0xe8], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + edx*4 + 0xc8]
mov dword [edi + ecx*4 + 0xec], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + edx*4 + 0x208]
mov dword [edi + ecx*4 + 0xf0], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + edx*4 + 0x168]
mov dword [edi + ecx*4 + 0xf4], eax
mov eax, dword [edi + 0xdc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + edx*4 + 0x1b8]
mov dword [edi + ecx*4 + 0xf8], eax
inc dword [edi + 0xdc]
inc edx
cmp edx, ebx
jb 0x4074c0
mov eax, dword [esp + 0x24]
add esi, 0x10
sub eax, 1
mov dword [esp + 0x24], eax
jne 0x4074b5
mov eax, dword [edi + 0xdc]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x1150], 1
test eax, eax
je 0x4075d9
inc dword [edx + 0x43c]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x43c]
add ecx, 4
mov dword [esp + 0x18], ecx
cmp ecx, 8
jb 0x407290
test eax, eax
je 0x4075fd
inc dword [0x437308]
mov eax, dword [0x57ed10]
inc ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
cmp ebp, eax
jb 0x407060
xor ecx, ecx
call fcn.00407630
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret