Function at 0x412480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431f25
mov eax, dword fs:[0]
push eax
sub esp, 0x954
mov eax, dword [0x43d76c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x940], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x18]
call fcn.00412d00
lea eax, [ebp - 0x8dc]
push eax
mov ecx, dword [ebp - 0x940]
add ecx, 0x5c
call fcn.004185a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x4124ff
lea ecx, [ebp - 0x18]
call fcn.00412d40
lea eax, [ebp - 0x8e4]
push eax
mov ecx, dword [ebp - 0x940]
add ecx, 0x5c
call fcn.004185d0
push eax
lea ecx, [ebp - 0x18]
call fcn.00419b20
movzx ecx, al
test ecx, ecx
je 0x412540
lea ecx, [ebp - 0x18]
call fcn.00412d20
mov edx, dword [ebp - 0x44]
add edx, dword [eax + 0x58]
mov ecx, dword [ebp - 0x40]
adc ecx, dword [eax + 0x5c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
jmp 0x4124f7
mov ecx, dword [ebp - 0x940]
add ecx, 0x5c
call fcn.00412c70
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x940]
cmp dword [edx], 0
je 0x412581
push ecx
fldz
fstp dword [esp]
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x940]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x8ec]
push ecx
mov ecx, dword [ebp - 0x940]
add ecx, 0x5c
call fcn.004185a0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jmp 0x4125ab
lea ecx, [ebp - 0x18]
call fcn.00412d40
lea ecx, [ebp - 0x8f4]
push ecx
mov ecx, dword [ebp - 0x940]
add ecx, 0x5c
call fcn.004185d0
push eax
lea ecx, [ebp - 0x18]
call fcn.00419b20
movzx edx, al
test edx, edx
je 0x4128b8
lea ecx, [ebp - 0x70]
call fcn.00403970
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00403970
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00412d20
add eax, 0x38
push eax
mov eax, dword [ebp - 0x940]
add eax, 0x20
push eax
lea ecx, [ebp - 0x910]
push ecx
call fcn.0040bfa0
add esp, 0xc
mov dword [ebp - 0x944], eax
mov edx, dword [ebp - 0x944]
mov dword [ebp - 0x948], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x948]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00403a30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x910]
call fcn.00403a00
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004033d0
add esp, 4
mov edx, dword [ebp - 0x940]
cmp dword [edx], 0
je 0x4126ac
push str.Extracting
lea ecx, [ebp - 0x70]
call fcn.00403a50
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040c030
push 0x434928
lea ecx, [ebp - 0x70]
call fcn.00403a80
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x940]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x940]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov ecx, 1
test ecx, ecx
je 0x41283a
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00412d20
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x940]
add ecx, 0x40
call fcn.00403310
test eax, eax
jne 0x412833
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x914], esp
push 0x434930
call fcn.00403990
mov dword [ebp - 0x94c], eax
mov eax, dword [ebp - 0x94c]
mov dword [ebp - 0x950], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x918], esp
push str.installer_extractfile_failed
call fcn.00403990
mov dword [ebp - 0x954], eax
mov byte [ebp - 4], 1
call fcn.00417dc0
add esp, 0x38
push 0xcd
lea ecx, [ebp - 0x8b0]
push ecx
call fcn.00401d70
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404b90
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404b90
push eax
push 0x400
lea edx, [ebp - 0x894]
push edx
call fcn.00421de3
add esp, 0x10
push 2
push str.Error
lea eax, [ebp - 0x894]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 4
jne 0x4127b6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8b0]
call fcn.00403a00
jmp 0x4126ac
cmp dword [ebp - 0x90], 3
je 0x4127c8
cmp dword [ebp - 0x90], 2
jne 0x41280a
mov dword [ebp - 0x91c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8b0]
call fcn.00403a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00403a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403a00
mov eax, dword [ebp - 0x91c]
jmp 0x4129ef
cmp dword [ebp - 0x90], 5
jne 0x412824
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8b0]
call fcn.00403a00
jmp 0x41283a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8b0]
call fcn.00403a00
jmp 0x41283a
lea ecx, [ebp - 0x18]
call fcn.00412d20
mov ecx, dword [ebp - 0x54]
add ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x50]
adc edx, dword [eax + 0x5c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x940]
cmp dword [eax], 0
je 0x412895
mov ecx, dword [ebp - 0x44]
or ecx, dword [ebp - 0x40]
je 0x412895
fild qword [ebp - 0x54]
fild qword [ebp - 0x44]
fdivp st(1)
fstp dword [ebp - 0x958]
fld dword [ebp - 0x958]
push ecx
fstp dword [esp]
mov edx, dword [ebp - 0x940]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x940]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00403a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403a00
jmp 0x4125a3
push 0x9d
push 0x43497c
lea ecx, [ebp - 0x38]
push ecx
call fcn.00401bd0
add esp, 0xc
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.00403bc0
movzx edx, al
test edx, edx
jne 0x4129d0
push str.sn.txt
push 0x434994
mov eax, dword [ebp - 0x940]
add eax, 0x20
push eax
lea ecx, [ebp - 0x938]
push ecx
call fcn.00413250
add esp, 0xc
mov dword [ebp - 0x95c], eax
mov edx, dword [ebp - 0x95c]
mov dword [ebp - 0x960], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x960]
push eax
lea ecx, [ebp - 0x8cc]
push ecx
call fcn.00413250
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x938]
call fcn.00403a00
lea edx, [ebp - 0x8cc]
push edx
call fcn.004033d0
add esp, 4
push 0x434998
lea ecx, [ebp - 0x8cc]
call fcn.00404b90
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0042219e
add esp, 0xc
mov dword [ebp - 0x8d4], eax
cmp dword [ebp - 0x8d0], 0
je 0x4129c1
cmp dword [ebp - 0x8d4], 0
jne 0x4129c1
mov ecx, dword [ebp - 0x8d0]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00403bb0
shl eax, 1
push eax
push 1
lea ecx, [ebp - 0x38]
call fcn.00404b90
push eax
call fcn.00422056
add esp, 0x10
mov edx, dword [ebp - 0x8d0]
push edx
call fcn.00421e78
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8cc]
call fcn.00403a00
mov dword [ebp - 0x93c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403a00
mov eax, dword [ebp - 0x93c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00421275
mov esp, ebp
pop ebp
ret