Function at 0x1cdefb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1d52d12
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1d9682c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1d9682c]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov edi, dword [esp + 0x448]
mov ebx, dword [esp + 0x44c]
mov esi, dword [esp + 0x450]
push 0
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
call fcn.01cddf50
mov ebp, eax
test ebp, ebp
jne 0x1cdf03b
test esi, esi
je 0x1cdf18a
mov ecx, dword [esp + 0x14]
push eax
push edi
call fcn.01cde4b0
mov ebp, eax
test ebp, ebp
je 0x1cdf18a
test ebx, ebx
je 0x1cdf0cf
push ebx
mov ecx, ebp
call fcn.01cdd150
mov esi, eax
test esi, esi
jne 0x1cdf09f
test byte [ebp + 0x14], 1
je 0x1cdf07e
mov ecx, ebp
call fcn.01cdbbb0
mov ecx, dword [esp + 0x14]
push 1
push edi
call fcn.01cddf50
mov ebp, eax
test ebp, ebp
je 0x1cdf07e
push ebx
mov ecx, ebp
call fcn.01cdd150
mov esi, eax
test esi, esi
jne 0x1cdf09f
cmp dword [esp + 0x1c], 0
je 0x1cdf17f
push 0
push 0
push ebx
mov ecx, ebp
call fcn.01cde1c0
mov esi, eax
test esi, esi
je 0x1cdf17f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1cdf0bb
push eax
mov ecx, esi
call fcn.01cdc070
mov ecx, esi
call fcn.01cdbbb0
jmp 0x1cdf17f
push esi
mov ecx, ebp
call fcn.01cdd950
mov ecx, esi
call fcn.01cdbbb0
jmp 0x1cdf17f
test esi, esi
jne 0x1cdf0e2
mov ecx, dword [esp + 0x14]
push ebp
call fcn.01cddbf0
jmp 0x1cdf17f
mov ecx, ebp
call fcn.01cdda60
cmp word [esi], 0
mov edi, esi
je 0x1cdf17f
movzx eax, word [edi]
xor ebx, ebx
mov ecx, 0xa
mov esi, edi
test ax, ax
je 0x1cdf151
movzx eax, ax
lea esp, [esp]
cmp ax, 0xd
jne 0x1cdf140
cmp word [esi + 2], cx
jne 0x1cdf145
mov ebx, 2
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.01cde250
mov ecx, eax
call fcn.01cdbbb0
test ebx, ebx
je 0x1cdf15d
lea edi, [esi + ebx*2]
jmp 0x1cdf175
cmp ax, cx
je 0x1cdf156
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x1cdf110
or eax, 0xffffffff
jmp 0x1cdf127
mov ebx, 1
jmp 0x1cdf121
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1cdf162
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x1cdf0f5
test ebp, ebp
je 0x1cdf18a
mov ecx, ebp
call fcn.01cdbbb0
mov esi, dword [esp + 0x14]
test byte [esi + 0x14], 4
jne 0x1cdfa8d
cmp dword [esi + 0x48], 0
jne 0x1cdf1b3
cmp dword [esi + 0x44], 0
je 0x1cdf1b3
mov ecx, esi
call fcn.01cdc3a0
test eax, eax
je 0x1cdfa92
lea ecx, [esp + 0x1a4]
call fcn.01d0fdc0
mov dword [esp + 0x440], 0
cmp dword [esi + 0x30], 0
je 0x1cdf1f1
push 0
lea ecx, [esp + 0x1a8]
call fcn.01d0fbb0
push 0xfeff
push 1
lea ecx, [esp + 0x1ac]
call fcn.01d0f1a0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x48]
xor ebp, ebp
lea ecx, [esp + 0x248]
xor edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
call fcn.01d0fdc0
mov byte [esp + 0x440], 1
test ebx, ebx
je 0x1cdf459
lea ecx, [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.01cdc250
test eax, eax
je 0x1cdf459
lea esi, [esp + 0x248]
call fcn.01cdc770
push 0
mov ecx, esi
call fcn.01d0f290
cmp word [eax], 0x3b
je 0x1cdf44d
push 0
mov ecx, esi
call fcn.01d0f290
cmp word [eax], 0x5b
jne 0x1cdf36a
test edi, edi
jne 0x1cdf47c
mov ecx, dword [esp + 0x24c]
dec ecx
xor esi, esi
test ecx, ecx
jle 0x1cdf2b4
nop
lea edi, [esi + 1]
push edi
lea ecx, [esp + 0x24c]
call fcn.01d0f290
cmp word [eax], 0x5d
je 0x1cdf2b4
mov edx, dword [esp + 0x24c]
mov esi, edi
dec edx
cmp esi, edx
jl 0x1cdf290
push esi
push 1
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x254]
call fcn.01d10520
mov byte [esp + 0x440], 2
mov ecx, dword [0x1d76b80]
push ecx
push 0
push eax
lea ecx, [esp + 0x39c]
call fcn.01d101a0
mov byte [esp + 0x440], 4
lea ecx, [esp + 0x100]
call fcn.01d0f660
lea esi, [esp + 0x390]
call fcn.01cdc770
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x390]
push edx
push eax
call fcn.01d212f2
mov esi, dword [esp + 0x34]
mov edi, eax
push 2
neg edi
sbb edi, edi
push 0x1d65c6c
push esi
inc edi
call fcn.01d22fe5
add esp, 0x14
test eax, eax
jne 0x1cdf343
add esi, 4
mov dword [esp + 0x18], esi
jmp 0x1cdf34b
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebp, ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x440], 1
lea ecx, [esp + 0x390]
call fcn.01d0f660
jmp 0x1cdf44d
test edi, edi
je 0x1cdf44d
mov esi, dword [esp + 0x2c]
push 2
push 0x1d65c6c
push esi
call fcn.01d22fe5
add esp, 0xc
test eax, eax
jne 0x1cdf393
add esi, 4
mov dword [esp + 0x18], esi
jmp 0x1cdf39b
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x24], 0
je 0x1cdf44d
lea ecx, [esp + 0x2ec]
call fcn.01d0fdc0
mov byte [esp + 0x440], 5
push 0
push 0x3d
lea ecx, [esp + 0x250]
call fcn.01d0f2e0
mov ebp, eax
cmp ebp, dword [0x1d76b80]
je 0x1cdf418
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x250]
call fcn.01c51250
mov byte [esp + 0x440], 6
push eax
lea ecx, [esp + 0x2f0]
call fcn.01c560d0
mov byte [esp + 0x440], 5
lea ecx, [esp + 0x5c]
call fcn.01d0f660
lea esi, [esp + 0x2ec]
call fcn.01cdc770
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2ec]
push ecx
push edx
call fcn.01d212f2
add esp, 8
test eax, eax
je 0x1cdf5bd
mov byte [esp + 0x440], 1
lea ecx, [esp + 0x2ec]
call fcn.01d0f660
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x1cdf224
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1cdf689
cmp dword [esp + 0x24], esi
jne 0x1cdf473
test edi, edi
jne 0x1cdf699
mov ecx, dword [esp + 0x14]
jmp 0x1cdfa5d
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x1cdf540
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
sub ebp, eax
sar ebp, 1
push ebp
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1cdf51f
mov eax, dword [0x1d76b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x1d6eccc
push eax
push ecx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.01d0f1a0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
cmp word [esi], di
je 0x1cdf51f
lea ecx, [ecx]
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push esi
lea ecx, [esp + 0x1b4]
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1cdf505
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x1cdf4e0
mov edx, dword [0x1d76b80]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov edi, dword [esp + 0x14]
jmp 0x1cdf929
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x1cdfa5d
mov eax, dword [ecx + 0x48]
mov esi, dword [esp + 0x18]
mov edx, esi
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push ebx
push eax
push 0x1d6ec9c
push eax
push edi
lea ecx, [esp + 0x1c4]
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov eax, dword [0x1d76b80]
push eax
push esi
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov edi, dword [esp + 0x14]
jmp 0x1cdf929
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1cdf5ec
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x48]
sub ebx, eax
sar ebx, 1
push ebx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov edx, dword [0x1d76b80]
mov eax, dword [esp + 0x18]
push edx
push eax
jmp 0x1cdf660
cmp ebp, dword [0x1d76b80]
je 0x1cdf61b
push 0x3d
push ebx
call fcn.01d20953
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x48]
add eax, 2
sub eax, ecx
add esp, 8
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov edx, dword [0x1d76b80]
push edx
push esi
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov esi, dword [esp + 0x2c]
cmp ebx, esi
jae 0x1cdf658
jmp 0x1cdf640
movzx eax, word [esi - 2]
push eax
call fcn.01d23afc
add esp, 4
test eax, eax
je 0x1cdf658
add esi, 0xfffffffe
cmp ebx, esi
jb 0x1cdf640
mov ecx, dword [0x1d76b80]
push ecx
push esi
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov byte [esp + 0x440], 1
lea ecx, [esp + 0x2ec]
call fcn.01d0f660
mov edi, dword [esp + 0x14]
jmp 0x1cdf929
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x1cdf74f
test edi, edi
je 0x1cdf6a7
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
sub ebp, eax
sar ebp, 1
push ebp
jmp 0x1cdf6b5
mov edx, dword [0x1d76b80]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
test esi, esi
je 0x1cdf929
mov eax, dword [0x1d76b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x1d6eccc
push eax
push ecx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.01d0f1a0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
cmp word [esi], 0
je 0x1cdf929
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push esi
lea ecx, [esp + 0x1b4]
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov eax, esi
lea edx, [eax + 2]
jmp 0x1cdf730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1cdf730
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x1cdf703
jmp 0x1cdf929
test edi, edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
je 0x1cdf823
mov ebp, dword [esp + 0x18]
mov edx, ebp
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov eax, ebp
sub eax, dword [edi + 0x48]
lea ecx, [esp + 0x1a4]
sar eax, 1
dec eax
push eax
call fcn.01d0f290
cmp word [eax], 0xa
jne 0x1cdf7cc
mov ecx, ebp
sub ecx, dword [edi + 0x48]
sar ecx, 1
sub ecx, 2
push ecx
lea ecx, [esp + 0x1a8]
call fcn.01d0f290
cmp word [eax], 0xd
jne 0x1cdf7cc
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push esi
push eax
push 0x1d6ec9c
push eax
push ebx
lea ecx, [esp + 0x1c4]
jmp 0x1cdf7f5
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push esi
push eax
push 0x1d6ec9c
push eax
push ebx
push eax
push 0x1d65c6c
lea ecx, [esp + 0x1cc]
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov edx, dword [0x1d76b80]
push edx
push ebp
lea ecx, [esp + 0x1ac]
jmp 0x1cdf924
test eax, eax
je 0x1cdf8c4
cmp word [eax], 0
je 0x1cdf8c4
mov ecx, dword [0x1d76b80]
push ecx
push eax
lea ecx, [esp + 0x1ac]
call fcn.01d0fdd0
mov eax, dword [esp + 0x1a8]
cmp eax, 2
jl 0x1cdf899
dec eax
push eax
lea ecx, [esp + 0x1a8]
call fcn.01d0f290
cmp word [eax], 0xa
jne 0x1cdf899
mov edx, dword [esp + 0x1a8]
add edx, 0xfffffffe
push edx
lea ecx, [esp + 0x1a8]
call fcn.01d0f290
cmp word [eax], 0xd
jne 0x1cdf899
mov eax, dword [0x1d76b80]
push eax
push 0x1d6eccc
push eax
mov eax, dword [esp + 0x2c]
push eax
jmp 0x1cdf8d5
mov eax, dword [0x1d76b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x1d6eccc
push eax
push ecx
push 0x5b
push 1
push eax
push 0x1d65c6c
lea ecx, [esp + 0x1c4]
call fcn.01d0fdd0
mov ecx, eax
jmp 0x1cdf8e0
mov eax, dword [0x1d76b80]
mov edx, dword [esp + 0x20]
push eax
push 0x1d6eccc
push eax
push edx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.01d0f1a0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov eax, dword [0x1d76b80]
push eax
push 0x1d65c6c
push eax
push esi
push eax
push 0x1d6ec9c
push eax
push ebx
lea ecx, [esp + 0x1c4]
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
mov ecx, eax
call fcn.01d0fdd0
cmp dword [edi + 0x30], 0
je 0x1cdf941
mov esi, dword [esp + 0x1a8]
mov ebx, dword [esp + 0x1a4]
add esi, esi
jmp 0x1cdf95d
lea ecx, [esp + 0x1a4]
call fcn.01d0f680
mov ebx, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1cdf952
sub eax, edx
mov esi, eax
mov eax, dword [edi + 0x34]
push 0
push 0
push eax
call fcn.01ca6600
mov edx, dword [edi + 0x34]
add esp, 0xc
push 0
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
push edx
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x1cdfa4a
cmp dword [esp + 0x34], esi
jne 0x1cdfa4a
mov eax, dword [edi + 0x34]
push eax
call dword [0x1d7ffb4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
call fcn.01c94100
add esp, 0xc
test eax, eax
je 0x1cdf9ce
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], edx
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x1cdf9de
push eax
call fcn.01c5d9e0
add esp, 4
xor ecx, ecx
lea edx, [ecx + 2]
cmp dword [edi + 0x30], ecx
je 0x1cdfa1a
mov eax, dword [esp + 0x1a8]
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01c5d9d0
mov ecx, dword [esp + 0x1a8]
add ecx, 2
push ecx
push esi
push eax
mov dword [edi + 0x48], eax
call fcn.01d2280c
add esp, 0x10
jmp 0x1cdfa5b
mov esi, dword [esp + 0x1a8]
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01c5d9d0
mov ecx, dword [esp + 0x1a8]
push ecx
push esi
push eax
mov dword [edi + 0x48], eax
call fcn.01d2280c
add esp, 0x10
jmp 0x1cdfa5b
mov edx, dword [edi + 4]
push edx
push str._Error_writing_to_.ini_file__ls_n
call fcn.01c5dda0
add esp, 8
mov ecx, edi
call fcn.01cdc380
mov byte [esp + 0x440], 0
lea ecx, [esp + 0x248]
call fcn.01d0f660
mov dword [esp + 0x440], 0xffffffff
lea ecx, [esp + 0x1a4]
call fcn.01d0f660
mov eax, 1
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.01d20f6a
add esp, 0x430
ret 0xc