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

Disassembly:
sub esp, 0xa90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xaa0]
push edi
xor edi, edi
cmp esi, edi
mov ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
jl 0x412d5a
cmp esi, 4
jge 0x412d5a
mov ecx, 0x68d9e0
mov dword [esp + 0x18], 1
call fcn.00403bd0
cmp eax, 2
jne 0x4129d9
push edi
push esi
mov ecx, 0x68d9e0
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x60], edi
call fcn.004042e0
mov edi, dword [ebx + 4]
mov ebp, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
call fcn.00408bb0
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
cmp eax, ecx
mov dword [esp + 0x40], eax
je 0x4124cd
mov dx, word [esp + 0x10]
cmp dx, word [eax + 0x10]
jb 0x4124cd
lea eax, [esp + 0x40]
jmp 0x4124d5
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov eax, dword [eax]
cmp eax, edi
je 0x412602
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov word [esp + 0xf0], bp
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x90]
mov dword [esp + 0x2c], ecx
mov ecx, 0x52
mov word [esp + 0xf0], bp
lea eax, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x60], edx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x98]
mov dword [esp + 0x2c], ecx
mov ecx, 0x52
mov word [esp + 0xf0], bp
lea eax, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x58], edx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xa0]
mov dword [esp + 0x2c], ecx
mov ecx, 0x52
mov word [esp + 0xf0], bp
lea eax, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], edx
call fcn.00408a80
mov edx, eax
mov esi, dword [esp + 0xaa4]
xor ebp, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xa8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x412608
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov edi, 1
push esi
mov ecx, 0x68d9e0
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xac], 0x3f800000
mov dword [esp + 0xb0], 0x3f800000
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xcc], 0x3f800000
mov dword [esp + 0xd0], 0x3f800000
mov dword [esp + 0xd4], 0x3f800000
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x44], edi
call fcn.00404500
cmp eax, edi
jle 0x4128f7
mov dword [esp + 0x20], ebp
push edi
push esi
mov ecx, 0x68d9e0
call fcn.004042e0
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
call fcn.00408bb0
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
cmp eax, ecx
mov dword [esp + 0x1c], eax
je 0x412742
mov dx, word [esp + 0x10]
cmp dx, word [eax + 0x10]
jb 0x412742
lea eax, [esp + 0x1c]
jmp 0x41274a
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
cmp edx, ecx
je 0x4128d2
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov word [esp + 0xf0], bp
lea edx, [esp + 0xf0]
lea eax, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
je 0x4127ba
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
fmul dword [0x62d570]
fstp dword [esp + eax + 0xa4]
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x2c8]
mov word [esp + 0x2c0], bp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2c0]
lea edx, [esp + 0xe0]
push ecx
push edx
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
je 0x41281c
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
fmul dword [0x62d570]
fstp dword [esp + eax + 0xc0]
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x418]
mov word [esp + 0x410], bp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x410]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
je 0x412878
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
fmul dword [0x62d570]
fstp dword [esp + eax + 0x64]
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x568]
mov word [esp + 0x560], bp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x560]
lea edx, [esp + 0xe8]
push ecx
push edx
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov esi, dword [esp + 0xaa4]
mov edi, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0xa8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
add ecx, eax
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x20]
inc edi
add ebp, 4
push esi
mov ecx, 0x68d9e0
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], ebp
call fcn.00404500
cmp edi, eax
jl 0x4126fa
xor ebp, ebp
fild dword [esp + 0x58]
push esi
mov ecx, 0x68d9e0
xor edi, edi
fstp dword [esp + 0x24]
fild dword [esp + 0x54]
fstp dword [esp + 0x20]
fild dword [esp + 0x28]
fstp dword [esp + 0x14]
call fcn.00404500
test eax, eax
jle 0x41295a
fld dword [esp + 0x20]
fmul dword [esp + edi*4 + 0xa0]
push esi
mov ecx, 0x68d9e0
inc edi
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + edi*4 + 0xbc]
fstp dword [esp + 0x20]
fld dword [esp + 0x14]
fmul dword [esp + edi*4 + 0x60]
fstp dword [esp + 0x14]
call fcn.00404500
cmp edi, eax
jl 0x412920
fld dword [esp + 0x20]
call fcn.00613380
cmp dword [0x6d6880], eax
jge 0x412977
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 1
fld dword [esp + 0x1c]
call fcn.00613380
cmp dword [0x6d6884], eax
jge 0x412996
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
or al, 2
mov dword [esp + 0x14], eax
fld dword [esp + 0x10]
call fcn.00613380
cmp dword [0x6d6888], eax
jge 0x4129b5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
or al, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [0x6d68dc]
cmp eax, ecx
jae 0x412d50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
or al, 8
mov dword [esp + 0x14], eax
jmp 0x412d5a
push esi
mov ecx, 0x68d9e0
mov dword [esp + 0x14], edi
call fcn.00404500
test eax, eax
jle 0x412f43
jmp 0x4129f9
mov esi, dword [esp + 0xaa4]
mov edx, dword [esp + 0x10]
mov ecx, 0x68d9e0
push edx
push esi
call fcn.004042e0
mov esi, dword [ebx + 4]
mov ebp, eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
mov dword [esp + 0x28], ebp
call fcn.00409030
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], eax
cmp eax, ecx
je 0x412a3a
mov dx, word [esp + 0x24]
cmp dx, word [eax + 0x10]
jb 0x412a3a
lea eax, [esp + 0x28]
jmp 0x412a42
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x3c]
cmp dword [eax], esi
je 0x412ce6
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x568]
mov word [esp + 0x560], bp
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x560]
lea ecx, [esp + 0xe8]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x412ae6
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x418]
mov word [esp + 0x410], bp
lea edx, [esp + 0x410]
lea eax, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [0x6d6880]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x90]
cmp ecx, edx
jl 0x412c95
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x2c8]
mov word [esp + 0x2c0], bp
lea edx, [esp + 0x2c0]
lea eax, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x98]
test ecx, ecx
mov dword [esp + 0x38], edx
je 0x412b7f
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0xf8]
mov word [esp + 0xf0], bp
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [0x6d6884]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x98]
cmp edx, ecx
jl 0x412caa
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x6b8]
mov word [esp + 0x6b0], bp
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x6b0]
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xa0]
test ecx, ecx
je 0x412c15
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x808]
mov word [esp + 0x800], bp
lea edx, [esp + 0x800]
lea eax, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [0x6d6888]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xa0]
cmp ecx, edx
jl 0x412cbf
mov ecx, 0x52
lea esi, [esp + 0xf0]
lea edi, [esp + 0x958]
mov word [esp + 0x950], bp
lea edx, [esp + 0x950]
lea eax, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [0x6d68dc]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xa8]
cmp ecx, edx
jb 0x412cd4
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xaa4]
inc esi
push edx
mov ecx, 0x68d9e0
mov dword [esp + 0x14], esi
call fcn.00404500
cmp esi, eax
jl 0x4129f2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa90
ret 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
jmp 0x412d5a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
jmp 0x412d5a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
jmp 0x412d5a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
jmp 0x412d5a
mov ecx, 5
mov esi, 0x641bbc
lea edi, [esp + 0x60]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0xa4f274]
not ecx
dec ecx
test eax, eax
mov esi, ecx
je 0x412d28
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00586e90
add esp, 8
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push esi
push ecx
call fcn.004cbc90
add esp, 0x14
call fcn.004574c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa90
ret 4
cmp dword [esp + 0x18], ebp
jne 0x412f43
mov dl, byte [0x68ef6c]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x241]
mov byte [esp + 0x240], dl
mov byte [esp + 0x60], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x61]
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 1
mov dword [esp + 0x24], 4
mov edi, dword [esp + 0x14]
mov eax, ebx
and eax, edi
shl ebx, 1
dec eax
cmp eax, 7
ja case.0x412daf.3
jmp dword [eax*4 + 0x412f54]
test edx, edx
jle 0x412de8
mov edi, 0x641c04
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0x60]
mov edi, 0x641bfc
jmp 0x412eab
test edx, edx
jle 0x412e28
mov edi, 0x641c04
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0x60]
mov edi, 0x641bf4
jmp 0x412eab
test edx, edx
jle 0x412e65
mov edi, 0x641c04
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0x60]
mov edi, 0x641bec
jmp 0x412eab
test edx, edx
jle 0x412ea2
mov edi, 0x641c04
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0x60]
mov edi, 0x641be4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x412d9b
lea edx, [esp + 0x60]
lea eax, [esp + 0x240]
push edx
push 0x641bd0
push eax
call fcn.006133d6
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [0xa4f274]
not ecx
dec ecx
test eax, eax
mov esi, ecx
je 0x412f27
lea ecx, [esp + 0x240]
push esi
push ecx
call fcn.00586e90
add esp, 8
push 0
push 0
push 0
lea edx, [esp + 0x24c]
push esi
push edx
call fcn.004cbc90
add esp, 0x14
call fcn.004574c0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa90
ret 4