Function at 0x417590
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x4175ca
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x80]
call fcn.00414510
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.004146e0
test al, al
jne 0x417604
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.00414560
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x48efa8
call fcn.0040a840
test al, al
jne 0x41764b
mov al, byte [0x48f1fa]
test al, al
jne 0x417620
mov ebx, dword [ebp + 8]
jmp 0x41764b
mov eax, dword [0x48f1f8]
test ah, ah
jne 0x41764b
and eax, 0xff
je 0x41764b
imul eax, dword [ebp + 8]
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
mov ecx, dword [ebp - 0x7c]
mov edx, dword [esi]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x28], ecx
mov ecx, esi
call dword [edx + 0x4c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov edx, dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, esi
mov dword [ebp - 0x20], eax
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 4
call dword [edx + 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x44], eax
call dword [edx + 0x64]
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x48], eax
call dword [edx + 0x4c]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], edi
call dword [eax + 0x50]
cmp edi, eax
mov dword [ebp - 0x1c], eax
jle 0x4176c4
mov eax, edi
mov ecx, 0x48f3c8
lea edi, [eax - 1]
call fcn.004182f0
mov ecx, 1
mov esi, eax
cmp edi, ecx
jle 0x4176eb
mov eax, edi
inc ecx
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 1
jg 0x4176dc
mov eax, ebx
xor edx, edx
div ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x2c], eax
jmp 0x417707
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, 0x48f3c8
add esi, edx
mov dword [ebp - 0x30], esi
call fcn.004182f0
cmp eax, esi
jae 0x417733
push 1
call dword [0x473318]
mov ecx, 0x48f3c8
call fcn.004182f0
cmp eax, esi
jb 0x41771d
pushal
shl dword [ebp - 0x14], 1
and dword [ebp - 0x5c], 0
and dword [ebp - 0x58], 0
jmp 0x41780a
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mul dword [ebp - 0x5c]
add edi, eax
mov dword [ebp - 0x4c], edi
jmp 0x4177cb
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
cmp byte [ebp + 0xb], 0
je 0x41778b
mov ebx, dword [ebp - 0x14]
shr ebx, 1
mov ecx, ebx
add ebx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x5c]
inc ebx
inc ecx
mov eax, dword [ebp - 0x18]
cmp ebx, eax
jle 0x417780
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jle 0x417789
mov ecx, eax
dec ebx
dec ecx
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mul ebx
add esi, eax
mov eax, dword [ebp - 0x38]
mul ecx
add esi, eax
cmp dword [ebp - 0x3c], 1
jne 0x4177ad
mov esi, dword [ebp - 0x34]
movzx eax, byte [esi]
shl eax, 2
add esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x18]
jle 0x4177bd
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x54]
rep stosd dword es:[edi], eax
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x18]
jl 0x41775c
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x1c]
jle 0x4177e1
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x4c]
add edi, dword [ebp - 0x44]
jmp 0x4177ff
mov esi, dword [ebp - 0x4c]
mov ebx, ecx
mov edx, edi
mov ecx, dword [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov edi, edx
add edi, dword [ebp - 0x44]
loop 0x4177ec
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x1c]
jl 0x417744
popal
mov ebx, dword [ebp - 0x74]
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push 0
push 0
push eax
mov eax, dword [ebp - 0x28]
push ecx
push edx
push 0
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [0x4730f4]
lea ecx, [ebp - 0x80]
call fcn.004147c0
test al, al
jne 0x417869
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jl 0x417704
cmp eax, dword [ebp - 0x1c]
jl 0x417704
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 0x78]
neg esi
sbb esi, esi
and esi, edx
mov edx, dword [ecx]
call dword [edx + 0x60]
push eax
push esi
mov esi, dword [0x4730f0]
call esi
mov edx, dword [ebp - 0x74]
mov edi, eax
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x24]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [ebp - 0x28]
push 0
push 0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push 0
push eax
call dword [0x4730f4]
mov ebx, dword [ebp - 0x74]
lea eax, [ebp - 0x78]
neg eax
sbb eax, eax
push edi
and eax, ebx
push eax
call esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.00414560
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret