Function at 0x100170e7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a899
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x1002005c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov cl, 0xa
call fcn.10019830
push eax
push 0
push 0x503
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x420], eax
and dword [ebp - 0x428], 0
mov ecx, dword [ebp - 0x49c]
call fcn.10015995
movzx eax, al
test eax, eax
je 0x1001716f
xor al, al
jmp 0x10017ab9
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x10]
call dword [0x10021e5c]
test eax, eax
jne 0x10017222
push 0x1002126c
lea ecx, [ebp - 0x434]
call fcn.10002a3c
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x49c]
call fcn.10016bcc
mov eax, dword [ebp - 0x49c]
add eax, 0x34
push eax
push 0x7a
call fcn.10015fe3
pop ecx
pop ecx
push dword [ebp - 0x434]
push 0x1001cddc
mov ecx, dword [ebp - 0x49c]
add ecx, 0x34
call fcn.100015d4
mov byte [ebp - 0x44d], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
sub eax, 0x10
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
call fcn.10002a85
mov al, byte [ebp - 0x44d]
jmp 0x10017ab9
push 0x1002126c
lea ecx, [ebp - 0x430]
call fcn.10002a3c
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x100173ef
mov eax, dword [ebp - 0x49c]
mov eax, dword [eax + 0x38]
add eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x418]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
add eax, dword [edx]
mov edx, dword [edx + 4]
adc edx, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x418]
xor ecx, ecx
add eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
adc edx, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], edx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x470], eax
xor eax, eax
jne 0x100172b2
xor eax, eax
jne 0x100172b2
cmp dword [ebp - 0x474], 0
jne 0x100172cf
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x474], eax
push 0
push dword [ebp - 0x474]
push dword [ebp - 0x470]
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
jne 0x1001730b
call fcn.10002443
mov dword [ebp - 0x438], eax
jmp 0x10017312
and dword [ebp - 0x438], 0
cmp dword [ebp - 0x438], 0
jne 0x1001732d
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x418]
je 0x100173ef
push 0x1002126c
lea ecx, [ebp - 0x440]
call fcn.10002a3c
mov byte [ebp - 4], 2
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.1001616a
add esp, 0xc
mov eax, dword [ebp - 0x49c]
add eax, 0x34
push eax
push 0x7b
call fcn.10015fe3
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c]
add eax, 0x104
push eax
push 0x1001cddc
mov ecx, dword [ebp - 0x49c]
add ecx, 0x34
call fcn.100015d4
push dword [ebp - 0x440]
push 0x1001cde4
mov ecx, dword [ebp - 0x49c]
add ecx, 0x34
call fcn.100015d4
mov byte [ebp - 0x44e], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x440]
sub eax, 0x10
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
call fcn.10002a85
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x430]
sub eax, 0x10
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
call fcn.10002a85
mov al, byte [ebp - 0x44e]
jmp 0x10017ab9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x49c]
sub eax, dword [ecx + 0x2c]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jne 0x10017420
mov dword [ebp - 0x42c], 1
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x428]
jbe 0x100179cf
push 0x1002126c
lea ecx, [ebp - 0x448]
call fcn.10002a3c
mov byte [ebp - 4], 3
push 0x1002126c
lea ecx, [ebp - 0x444]
call fcn.10002a3c
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x100174c1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [ebp - 0x4a0]
mov eax, dword [eax]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x100174c1
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push eax
push 0x504
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x100174ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov cl, 0xa
call fcn.10019830
push eax
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
mov cl, 0xa
call fcn.10019830
push eax
push 0x503
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x49c]
mov eax, dword [eax + 0x38]
shr eax, 0xa
xor edx, edx
div dword [ebp - 0x42c]
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push str._s_KB_s
lea eax, [ebp - 0x430]
push eax
call fcn.10002730
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0x3f2
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x1001763d
lea eax, [ebp - 0x430]
push eax
push 0x68
call fcn.10015fe3
pop ecx
pop ecx
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cddc
lea ecx, [ebp - 0x430]
call fcn.100015d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cde4
lea ecx, [ebp - 0x430]
call fcn.100015d4
push 0
push 0x64
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call fcn.10013300
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push eax
call fcn.100197c0
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cde8
lea ecx, [ebp - 0x430]
call fcn.100015d4
lea eax, [ebp - 0x430]
push eax
push 0x3f0
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
jmp 0x1001769f
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
lea eax, [ebp - 0x430]
push eax
push 0x67
call fcn.10015fe3
pop ecx
pop ecx
push dword [ebp - 0x448]
push 0x1001cddc
lea ecx, [ebp - 0x430]
call fcn.100015d4
lea eax, [ebp - 0x430]
push eax
push 0x3f0
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x100177a3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x4a4]
mov eax, dword [eax]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x100177a3
lea eax, [ebp - 0x430]
push eax
push 0x68
call fcn.10015fe3
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cddc
lea ecx, [ebp - 0x430]
call fcn.100015d4
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cde4
lea ecx, [ebp - 0x430]
call fcn.100015d4
mov eax, dword [ebp + 0x14]
push 0
push 0x64
push dword [eax + 4]
push dword [eax]
call fcn.10013300
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
push dword [ecx]
push edx
push eax
call fcn.100197c0
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
push dword [ebp - 0x448]
push 0x1001cde8
lea ecx, [ebp - 0x430]
call fcn.100015d4
lea eax, [ebp - 0x430]
push eax
push 0x3f1
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
jmp 0x10017801
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push edx
push eax
lea ecx, [ebp - 0x448]
call fcn.1000120c
lea eax, [ebp - 0x430]
push eax
push 0x67
call fcn.10015fe3
pop ecx
pop ecx
push dword [ebp - 0x448]
push 0x1001cddc
lea ecx, [ebp - 0x430]
call fcn.100015d4
lea eax, [ebp - 0x430]
push eax
push 0x3f1
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
mov eax, dword [ebp - 0x42c]
xor edx, edx
push 0x3c
pop ecx
div ecx
push edx
mov eax, dword [ebp - 0x42c]
xor edx, edx
push 0x3c
pop ecx
div ecx
xor edx, edx
push 0x3c
pop ecx
div ecx
push edx
mov eax, dword [ebp - 0x42c]
xor edx, edx
mov ecx, 0xe10
div ecx
push eax
push str._d:_02d:_02d
lea eax, [ebp - 0x430]
push eax
call fcn.10002730
add esp, 0x14
lea eax, [ebp - 0x430]
push eax
push 0x3f4
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x10017993
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0x4a8]
mov eax, dword [eax]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10017993
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
cmp dword [eax + 4], 0
ja 0x100178b7
mov eax, dword [ebp - 0x4ac]
cmp dword [eax], 0
jbe 0x10017993
mov eax, dword [ebp - 0x49c]
cmp dword [eax + 0x38], 0
jbe 0x10017993
mov eax, dword [ebp - 0x42c]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
push dword [edx + 4]
push dword [edx]
push ecx
push eax
call fcn.10013300
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x38]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.100197c0
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
xor ecx, ecx
mov edx, dword [ebp + 0x18]
push ecx
push eax
push dword [edx + 4]
push dword [edx]
call fcn.10013300
mov ecx, dword [ebp + 0x14]
push dword [ecx + 4]
push dword [ecx]
push edx
push eax
call fcn.100197c0
mov ecx, dword [ebp - 0x42c]
xor esi, esi
sub eax, ecx
sbb edx, esi
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x44c]
xor edx, edx
push 0x3c
pop ecx
div ecx
push edx
mov eax, dword [ebp - 0x44c]
xor edx, edx
push 0x3c
pop ecx
div ecx
xor edx, edx
push 0x3c
pop ecx
div ecx
push edx
mov eax, dword [ebp - 0x44c]
xor edx, edx
mov ecx, 0xe10
div ecx
push eax
push str._d:_02d:_02d
lea eax, [ebp - 0x430]
push eax
call fcn.10002730
add esp, 0x14
lea eax, [ebp - 0x430]
push eax
push 0x3f5
push 0x505
mov ecx, dword [ebp - 0x49c]
call fcn.1001593f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x444]
sub eax, 0x10
mov dword [ebp - 0x490], eax
mov ecx, dword [ebp - 0x490]
call fcn.10002a85
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x448]
sub eax, 0x10
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
call fcn.10002a85
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x430]
sub eax, 0x10
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x498]
call fcn.10002a85
cmp dword [ebp - 0x418], 0
ja 0x10017156
mov eax, dword [ebp - 0x49c]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x424]
mov dword [eax + 0x310], ecx
mov ecx, dword [ebp - 0x420]
mov dword [eax + 0x314], ecx
call fcn.10015a00
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
mov cl, 0xa
call fcn.10019830
push eax
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
mov cl, 0xa
call fcn.10019830
push eax
push 0x503
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0x4b0]
mov eax, dword [eax]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10017ab7
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0xa
call fcn.10019830
push eax
push 0x504
mov eax, dword [ebp - 0x49c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009868
leave
ret 0x20