Function at 0x39befb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x3a32d12
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
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.039bdf50
mov ebp, eax
test ebp, ebp
jne 0x39bf03b
test esi, esi
je 0x39bf18a
mov ecx, dword [esp + 0x14]
push eax
push edi
call fcn.039be4b0
mov ebp, eax
test ebp, ebp
je 0x39bf18a
test ebx, ebx
je 0x39bf0cf
push ebx
mov ecx, ebp
call fcn.039bd150
mov esi, eax
test esi, esi
jne 0x39bf09f
test byte [ebp + 0x14], 1
je 0x39bf07e
mov ecx, ebp
call fcn.039bbbb0
mov ecx, dword [esp + 0x14]
push 1
push edi
call fcn.039bdf50
mov ebp, eax
test ebp, ebp
je 0x39bf07e
push ebx
mov ecx, ebp
call fcn.039bd150
mov esi, eax
test esi, esi
jne 0x39bf09f
cmp dword [esp + 0x1c], 0
je 0x39bf17f
push 0
push 0
push ebx
mov ecx, ebp
call fcn.039be1c0
mov esi, eax
test esi, esi
je 0x39bf17f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x39bf0bb
push eax
mov ecx, esi
call fcn.039bc070
mov ecx, esi
call fcn.039bbbb0
jmp 0x39bf17f
push esi
mov ecx, ebp
call fcn.039bd950
mov ecx, esi
call fcn.039bbbb0
jmp 0x39bf17f
test esi, esi
jne 0x39bf0e2
mov ecx, dword [esp + 0x14]
push ebp
call fcn.039bdbf0
jmp 0x39bf17f
mov ecx, ebp
call fcn.039bda60
cmp word [esi], 0
mov edi, esi
je 0x39bf17f
movzx eax, word [edi]
xor ebx, ebx
mov ecx, 0xa
mov esi, edi
test ax, ax
je 0x39bf151
movzx eax, ax
lea esp, [esp]
cmp ax, 0xd
jne 0x39bf140
cmp word [esi + 2], cx
jne 0x39bf145
mov ebx, 2
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.039be250
mov ecx, eax
call fcn.039bbbb0
test ebx, ebx
je 0x39bf15d
lea edi, [esi + ebx*2]
jmp 0x39bf175
cmp ax, cx
je 0x39bf156
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x39bf110
or eax, 0xffffffff
jmp 0x39bf127
mov ebx, 1
jmp 0x39bf121
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x39bf162
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x39bf0f5
test ebp, ebp
je 0x39bf18a
mov ecx, ebp
call fcn.039bbbb0
mov esi, dword [esp + 0x14]
test byte [esi + 0x14], 4
jne 0x39bfa8d
cmp dword [esi + 0x48], 0
jne 0x39bf1b3
cmp dword [esi + 0x44], 0
je 0x39bf1b3
mov ecx, esi
call fcn.039bc3a0
test eax, eax
je 0x39bfa92
lea ecx, [esp + 0x1a4]
call fcn.039efdc0
mov dword [esp + 0x440], 0
cmp dword [esi + 0x30], 0
je 0x39bf1f1
push 0
lea ecx, [esp + 0x1a8]
call fcn.039efbb0
push 0xfeff
push 1
lea ecx, [esp + 0x1ac]
call fcn.039ef1a0
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.039efdc0
mov byte [esp + 0x440], 1
test ebx, ebx
je 0x39bf459
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.039bc250
test eax, eax
je 0x39bf459
lea esi, [esp + 0x248]
call fcn.039bc770
push 0
mov ecx, esi
call fcn.039ef290
cmp word [eax], 0x3b
je 0x39bf44d
push 0
mov ecx, esi
call fcn.039ef290
cmp word [eax], 0x5b
jne 0x39bf36a
test edi, edi
jne 0x39bf47c
mov ecx, dword [esp + 0x24c]
dec ecx
xor esi, esi
test ecx, ecx
jle 0x39bf2b4
nop
lea edi, [esi + 1]
push edi
lea ecx, [esp + 0x24c]
call fcn.039ef290
cmp word [eax], 0x5d
je 0x39bf2b4
mov edx, dword [esp + 0x24c]
mov esi, edi
dec edx
cmp esi, edx
jl 0x39bf290
push esi
push 1
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x254]
call fcn.039f0520
mov byte [esp + 0x440], 2
mov ecx, dword [0x3a56b80]
push ecx
push 0
push eax
lea ecx, [esp + 0x39c]
call fcn.039f01a0
mov byte [esp + 0x440], 4
lea ecx, [esp + 0x100]
call fcn.039ef660
lea esi, [esp + 0x390]
call fcn.039bc770
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x390]
push edx
push eax
call fcn.03a012f2
mov esi, dword [esp + 0x34]
mov edi, eax
push 2
neg edi
sbb edi, edi
push 0x3a45c6c
push esi
inc edi
call fcn.03a02fe5
add esp, 0x14
test eax, eax
jne 0x39bf343
add esi, 4
mov dword [esp + 0x18], esi
jmp 0x39bf34b
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.039ef660
jmp 0x39bf44d
test edi, edi
je 0x39bf44d
mov esi, dword [esp + 0x2c]
push 2
push 0x3a45c6c
push esi
call fcn.03a02fe5
add esp, 0xc
test eax, eax
jne 0x39bf393
add esi, 4
mov dword [esp + 0x18], esi
jmp 0x39bf39b
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x24], 0
je 0x39bf44d
lea ecx, [esp + 0x2ec]
call fcn.039efdc0
mov byte [esp + 0x440], 5
push 0
push 0x3d
lea ecx, [esp + 0x250]
call fcn.039ef2e0
mov ebp, eax
cmp ebp, dword [0x3a56b80]
je 0x39bf418
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x250]
call fcn.03931250
mov byte [esp + 0x440], 6
push eax
lea ecx, [esp + 0x2f0]
call fcn.039360d0
mov byte [esp + 0x440], 5
lea ecx, [esp + 0x5c]
call fcn.039ef660
lea esi, [esp + 0x2ec]
call fcn.039bc770
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2ec]
push ecx
push edx
call fcn.03a012f2
add esp, 8
test eax, eax
je 0x39bf5bd
mov byte [esp + 0x440], 1
lea ecx, [esp + 0x2ec]
call fcn.039ef660
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x39bf224
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x39bf689
cmp dword [esp + 0x24], esi
jne 0x39bf473
test edi, edi
jne 0x39bf699
mov ecx, dword [esp + 0x14]
jmp 0x39bfa5d
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x39bf540
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.039efdd0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x39bf51f
mov eax, dword [0x3a56b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x3a4eccc
push eax
push ecx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.039ef1a0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
cmp word [esi], di
je 0x39bf51f
lea ecx, [ecx]
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push esi
lea ecx, [esp + 0x1b4]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x39bf505
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x39bf4e0
mov edx, dword [0x3a56b80]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov edi, dword [esp + 0x14]
jmp 0x39bf929
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x39bfa5d
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.039efdd0
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push ebx
push eax
push 0x3a4ec9c
push eax
push edi
lea ecx, [esp + 0x1c4]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push esi
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov edi, dword [esp + 0x14]
jmp 0x39bf929
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x39bf5ec
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.039efdd0
mov edx, dword [0x3a56b80]
mov eax, dword [esp + 0x18]
push edx
push eax
jmp 0x39bf660
cmp ebp, dword [0x3a56b80]
je 0x39bf61b
push 0x3d
push ebx
call fcn.03a00953
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.039efdd0
mov edx, dword [0x3a56b80]
push edx
push esi
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov esi, dword [esp + 0x2c]
cmp ebx, esi
jae 0x39bf658
jmp 0x39bf640
movzx eax, word [esi - 2]
push eax
call fcn.03a03afc
add esp, 4
test eax, eax
je 0x39bf658
add esi, 0xfffffffe
cmp ebx, esi
jb 0x39bf640
mov ecx, dword [0x3a56b80]
push ecx
push esi
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov byte [esp + 0x440], 1
lea ecx, [esp + 0x2ec]
call fcn.039ef660
mov edi, dword [esp + 0x14]
jmp 0x39bf929
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x39bf74f
test edi, edi
je 0x39bf6a7
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
sub ebp, eax
sar ebp, 1
push ebp
jmp 0x39bf6b5
mov edx, dword [0x3a56b80]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
test esi, esi
je 0x39bf929
mov eax, dword [0x3a56b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x3a4eccc
push eax
push ecx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.039ef1a0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
cmp word [esi], 0
je 0x39bf929
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push esi
lea ecx, [esp + 0x1b4]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov eax, esi
lea edx, [eax + 2]
jmp 0x39bf730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x39bf730
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x39bf703
jmp 0x39bf929
test edi, edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
je 0x39bf823
mov ebp, dword [esp + 0x18]
mov edx, ebp
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov eax, ebp
sub eax, dword [edi + 0x48]
lea ecx, [esp + 0x1a4]
sar eax, 1
dec eax
push eax
call fcn.039ef290
cmp word [eax], 0xa
jne 0x39bf7cc
mov ecx, ebp
sub ecx, dword [edi + 0x48]
sar ecx, 1
sub ecx, 2
push ecx
lea ecx, [esp + 0x1a8]
call fcn.039ef290
cmp word [eax], 0xd
jne 0x39bf7cc
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push esi
push eax
push 0x3a4ec9c
push eax
push ebx
lea ecx, [esp + 0x1c4]
jmp 0x39bf7f5
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push esi
push eax
push 0x3a4ec9c
push eax
push ebx
push eax
push 0x3a45c6c
lea ecx, [esp + 0x1cc]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov edx, dword [0x3a56b80]
push edx
push ebp
lea ecx, [esp + 0x1ac]
jmp 0x39bf924
test eax, eax
je 0x39bf8c4
cmp word [eax], 0
je 0x39bf8c4
mov ecx, dword [0x3a56b80]
push ecx
push eax
lea ecx, [esp + 0x1ac]
call fcn.039efdd0
mov eax, dword [esp + 0x1a8]
cmp eax, 2
jl 0x39bf899
dec eax
push eax
lea ecx, [esp + 0x1a8]
call fcn.039ef290
cmp word [eax], 0xa
jne 0x39bf899
mov edx, dword [esp + 0x1a8]
add edx, 0xfffffffe
push edx
lea ecx, [esp + 0x1a8]
call fcn.039ef290
cmp word [eax], 0xd
jne 0x39bf899
mov eax, dword [0x3a56b80]
push eax
push 0x3a4eccc
push eax
mov eax, dword [esp + 0x2c]
push eax
jmp 0x39bf8d5
mov eax, dword [0x3a56b80]
mov ecx, dword [esp + 0x20]
push eax
push 0x3a4eccc
push eax
push ecx
push 0x5b
push 1
push eax
push 0x3a45c6c
lea ecx, [esp + 0x1c4]
call fcn.039efdd0
mov ecx, eax
jmp 0x39bf8e0
mov eax, dword [0x3a56b80]
mov edx, dword [esp + 0x20]
push eax
push 0x3a4eccc
push eax
push edx
push 0x5b
push 1
lea ecx, [esp + 0x1bc]
call fcn.039ef1a0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
push eax
push esi
push eax
push 0x3a4ec9c
push eax
push ebx
lea ecx, [esp + 0x1c4]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
cmp dword [edi + 0x30], 0
je 0x39bf941
mov esi, dword [esp + 0x1a8]
mov ebx, dword [esp + 0x1a4]
add esi, esi
jmp 0x39bf95d
lea ecx, [esp + 0x1a4]
call fcn.039ef680
mov ebx, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x39bf952
sub eax, edx
mov esi, eax
mov eax, dword [edi + 0x34]
push 0
push 0
push eax
call fcn.03986600
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 0x39bfa4a
cmp dword [esp + 0x34], esi
jne 0x39bfa4a
mov eax, dword [edi + 0x34]
push eax
call dword [0x3a5ffb4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
call fcn.03974100
add esp, 0xc
test eax, eax
je 0x39bf9ce
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 0x39bf9de
push eax
call fcn.0393d9e0
add esp, 4
xor ecx, ecx
lea edx, [ecx + 2]
cmp dword [edi + 0x30], ecx
je 0x39bfa1a
mov eax, dword [esp + 0x1a8]
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, dword [esp + 0x1a8]
add ecx, 2
push ecx
push esi
push eax
mov dword [edi + 0x48], eax
call fcn.03a0280c
add esp, 0x10
jmp 0x39bfa5b
mov esi, dword [esp + 0x1a8]
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, dword [esp + 0x1a8]
push ecx
push esi
push eax
mov dword [edi + 0x48], eax
call fcn.03a0280c
add esp, 0x10
jmp 0x39bfa5b
mov edx, dword [edi + 4]
push edx
push str._Error_writing_to_.ini_file__ls_n
call fcn.0393dda0
add esp, 8
mov ecx, edi
call fcn.039bc380
mov byte [esp + 0x440], 0
lea ecx, [esp + 0x248]
call fcn.039ef660
mov dword [esp + 0x440], 0xffffffff
lea ecx, [esp + 0x1a4]
call fcn.039ef660
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.03a00f6a
add esp, 0x430
ret 0xc