Function at 0x417220
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x41725a
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 - 0x84]
call fcn.00414510
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.004146e0
test al, al
jne 0x41729d
lea ecx, [ebp - 0x84]
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 0x4172e4
mov al, byte [0x48f1fa]
test al, al
jne 0x4172b9
mov ebx, dword [ebp + 8]
jmp 0x4172e4
mov eax, dword [0x48f1f8]
test ah, ah
jne 0x4172e4
and eax, 0xff
je 0x4172e4
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 - 0x80]
mov edx, dword [esi]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x24], ecx
mov ecx, esi
call dword [edx + 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov edx, dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 4
call dword [edx + 0x54]
mov dword [ebp - 0x2c], 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 - 0x34], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x40], eax
call dword [edx + 0x4c]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x3c], edi
call dword [eax + 0x50]
cmp edi, eax
mov dword [ebp - 0x38], eax
jle 0x41735d
mov eax, edi
mov ecx, 0x48f3c8
lea edi, [eax - 1]
call fcn.004182f0
mov ecx, 1
mov dword [ebp - 0x60], eax
cmp edi, ecx
jle 0x41737e
sar edi, 1
inc ecx
cmp edi, 1
jg 0x417376
mov eax, ebx
xor edx, edx
div ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x5c], eax
mov eax, 1
shl eax, cl
cmp eax, 1
mov dword [ebp - 0x18], eax
jle 0x417502
pushal
and dword [ebp - 0x58], 0
and dword [ebp - 0x54], 0
jmp 0x417474
mov eax, dword [ebp - 0x44]
mul dword [ebp - 0x58]
mov edi, dword [ebp - 0x40]
add edi, eax
mov dword [ebp - 0x50], edi
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
jmp 0x417435
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
cmp byte [ebp + 0xb], 0
je 0x4173f6
mov ebx, dword [ebp - 0x18]
shr ebx, 1
mov ecx, ebx
add ebx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x58]
inc ebx
inc ecx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jge 0x4173eb
mov ebx, eax
mov eax, dword [ebp - 0x38]
cmp eax, ecx
jge 0x4173f4
mov ecx, eax
dec ebx
dec ecx
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mul ebx
add esi, eax
mov eax, dword [ebp - 0x2c]
mul ecx
add esi, eax
cmp dword [ebp - 0x30], 1
jne 0x417418
mov esi, dword [ebp - 0x28]
movzx eax, byte [esi]
shl eax, 2
add esi, eax
lodsd eax, dword [esi]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x3c]
jle 0x417427
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x4c]
rep stosd dword es:[edi], eax
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x3c]
jl 0x4173c7
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x38]
jle 0x41744b
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
add edi, dword [ebp - 0x44]
jmp 0x417469
mov esi, dword [ebp - 0x50]
mov edx, ecx
mov ebx, edi
mov ecx, dword [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edi, ebx
add edi, dword [ebp - 0x44]
loop 0x417456
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x38]
jl 0x4173af
shr dword [ebp - 0x18], 1
inc dword [ebp - 0x14]
popal
mov ebx, dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push 0
push 0
push eax
mov eax, dword [ebp - 0x24]
push ecx
push edx
push 0
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [0x4730f4]
lea ecx, [ebp - 0x84]
call fcn.004147c0
test al, al
jne 0x4174ff
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
imul esi, dword [ebp - 0x5c]
mov ecx, 0x48f3c8
add esi, edx
call fcn.004182f0
cmp eax, esi
jae 0x4174f5
push 0
call dword [0x473318]
mov ecx, 0x48f3c8
call fcn.004182f0
cmp eax, esi
jb 0x4174df
cmp dword [ebp - 0x18], 1
jg 0x4173a1
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x78]
lea edi, [ebp - 0x7c]
neg edi
sbb edi, edi
mov ecx, esi
and edi, edx
mov edx, dword [esi]
call dword [edx + 0x60]
mov esi, dword [0x4730f0]
push eax
push edi
call esi
mov edx, dword [ebp - 0x78]
mov edi, eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x20]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [ebp - 0x24]
push 0
push 0
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push 0
push eax
call dword [0x4730f4]
mov ebx, dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
neg eax
sbb eax, eax
push edi
and eax, ebx
push eax
call esi
lea ecx, [ebp - 0x84]
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