Function at 0x411e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov esi, dword [ebp + 8]
jae 0x411eb1
lea esi, [ebp + 8]
mov eax, dword [0x4bb674]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x180], eax
test esi, esi
je 0x411f11
mov ecx, esi
shr ecx, 0x10
test ecx, ecx
jne 0x411ee0
movzx eax, si
push eax
lea ecx, [ebp - 0x180]
call fcn.00401720
jmp 0x411f11
push esi
call ebx
mov edi, eax
test edi, edi
je 0x411f11
push edi
lea ecx, [ebp - 0x180]
call fcn.00401970
test eax, eax
je 0x411f11
mov edx, dword [ebp - 0x180]
lea eax, [edi + edi]
push eax
push esi
add eax, 2
push eax
push edx
call fcn.00401020
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp + 0x38], 8
mov esi, dword [ebp + 0x24]
jae 0x411f21
lea esi, [ebp + 0x24]
mov eax, dword [0x4bb674]
mov dword [ebp - 0x17c], eax
test esi, esi
je 0x411f7b
mov ecx, esi
shr ecx, 0x10
test ecx, ecx
jne 0x411f4a
movzx eax, si
push eax
lea ecx, [ebp - 0x17c]
call fcn.00401720
jmp 0x411f7b
push esi
call ebx
mov edi, eax
test edi, edi
je 0x411f7b
push edi
lea ecx, [ebp - 0x17c]
call fcn.00401970
test eax, eax
je 0x411f7b
mov edx, dword [ebp - 0x17c]
lea eax, [edi + edi]
push eax
push esi
add eax, 2
push eax
push edx
call fcn.00401020
add esp, 0x10
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x180]
push esi
call ebx
push 0
push 0
push 0
push 0
mov ebx, eax
push ebx
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0045dd6a
mov ecx, dword [ebp - 0x180]
add esp, 4
push 0
push 0
push edi
mov esi, eax
push esi
push ebx
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
mov byte [esi + edi], 0
call fcn.0043f480
mov edi, eax
push esi
mov dword [ebp - 0x184], edi
call fcn.004741b6
lea edx, [ebp - 0x120]
push edx
push edi
call fcn.0043e390
add esp, 0x10
test eax, eax
je 0x412091
mov eax, edi
push eax
call fcn.0043f4a0
mov eax, dword [ebp - 0x17c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
add esp, 4
cmp ecx, dword [0x4bb670]
je 0x41202b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x41202b
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x180]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x41204f
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x41204f
push esi
call fcn.00473f58
add esp, 4
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x412065
mov eax, dword [ebp + 8]
push eax
call fcn.00473515
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x41208a
mov edx, dword [ebp + 0x24]
push edx
call fcn.00473515
add esp, 4
xor al, al
jmp 0x41241a
mov eax, dword [ebp - 0x17c]
push eax
call fcn.0047776d
add esp, 4
cmp dword [ebp - 0x11c], 0
mov dword [ebp - 0x190], 0
jb 0x41237a
ja 0x4120c6
cmp dword [ebp - 0x120], 0
jbe 0x41237a
mov eax, dword [ebp - 0x184]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push 0x100
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x178]
push edx
push eax
call fcn.0043e8f0
add esp, 0x20
test eax, eax
jne 0x41248c
push 0x2000
call fcn.00474716
mov edi, eax
add esp, 4
mov dword [ebp - 0x194], edi
test edi, edi
je 0x412535
mov al, byte [ebp - 0x110]
lea ebx, [ebp - 0x110]
mov ecx, ebx
test al, al
je 0x412147
lea ecx, [ecx]
cmp al, 0x2f
je 0x412138
cmp al, 0x5c
jne 0x41213b
lea ebx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x412130
cmp byte [ebx], al
jne 0x412176
push 0x104
lea ecx, [ebp - 0x5a4]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x110]
push edx
push 0
push 1
call esi
lea eax, [ebp - 0x5a4]
push eax
call fcn.00476d5c
add esp, 4
jmp 0x412324
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0043f710
add esp, 4
test eax, eax
jne 0x41230f
push 0x104
lea edx, [ebp - 0x5a4]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 0
push 1
call esi
push 0x4a8218
lea ecx, [ebp - 0x5a4]
push ecx
lea edx, [ebp - 0x18c]
push edx
call fcn.00475276
add esp, 0xc
cmp dword [ebp - 0x18c], 0
jne 0x4122bb
lea eax, [ebp - 0x110]
cmp ebx, eax
je 0x41259b
mov cl, byte [ebx - 1]
mov byte [ebp - 0x185], cl
mov byte [ebx - 1], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4121f0
sub eax, edx
mov esi, eax
je 0x41226b
lea edi, [esi + 1]
push edi
call fcn.00474716
lea edx, [ebp - 0x110]
push edx
push edi
push 0
call fcn.00477899
add esp, 0x10
cmp byte [esi - 1], 0x2f
jne 0x412222
mov byte [esi - 1], 0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
lea eax, [ebp - 0x5a4]
push eax
push 0xffffffffffffffff
push 0
push 0
push 1
call edi
lea ecx, [ebp - 0x5a4]
push ecx
call fcn.00476d5c
add esp, 4
test eax, eax
jne 0x412436
push eax
call fcn.004741b6
push 0
call fcn.004741b6
mov edi, dword [ebp - 0x194]
add esp, 8
mov dl, byte [ebp - 0x185]
push 0x104
lea eax, [ebp - 0x5a4]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x110]
push ecx
push 0
push 1
mov byte [ebx - 1], dl
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4a8218
lea edx, [ebp - 0x5a4]
push edx
lea eax, [ebp - 0x18c]
push eax
call fcn.00475276
add esp, 0xc
cmp dword [ebp - 0x18c], 0
je 0x41259b
mov esi, dword [ebp - 0x184]
push 0x2000
push edi
push esi
call fcn.0043ec70
add esp, 0xc
test eax, eax
js 0x4122ee
jle 0x412300
mov ecx, dword [ebp - 0x18c]
push ecx
push 1
push eax
push edi
call fcn.00477d6e
add esp, 0x10
cmp eax, 1
je 0x4122c1
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.00475ef3
push esi
jmp 0x412566
mov edx, dword [ebp - 0x18c]
push edx
call fcn.00475ef3
add esp, 4
mov eax, dword [ebp - 0x184]
push eax
call fcn.0043ef00
push edi
call fcn.004741b6
add esp, 8
mov esi, dword [ebp - 0x190]
xor eax, eax
inc esi
cmp eax, dword [ebp - 0x11c]
ja 0x412356
jb 0x41233f
cmp esi, dword [ebp - 0x120]
jae 0x412356
mov edi, dword [ebp - 0x184]
push edi
call fcn.0043e990
add esp, 4
test eax, eax
jne 0x4125ac
xor eax, eax
mov dword [ebp - 0x190], esi
cmp eax, dword [ebp - 0x11c]
ja 0x41237a
jb 0x4120c6
mov ecx, dword [ebp - 0x120]
cmp esi, ecx
jb 0x4120c6
mov edx, dword [ebp - 0x184]
push edx
call fcn.0043f4a0
mov eax, dword [ebp - 0x17c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
add esp, 4
cmp eax, dword [0x4bb670]
je 0x4123b9
mov esi, dword [ebp - 0x17c]
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x4123b9
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x180]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4123dd
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x4123dd
push esi
call fcn.00473f58
add esp, 4
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x4123f3
mov edx, dword [ebp + 8]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x412418
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00473515
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x412440
cmp byte [esi], 0
je 0x412455
mov al, byte [esi]
cmp al, 0x5c
je 0x412455
cmp al, 0x2f
je 0x412455
inc esi
cmp byte [esi], 0
jne 0x412445
push 0x104
lea edx, [ebp - 0x5a4]
push edx
push 0xffffffffffffffff
push 0
push 0
push 1
mov byte [esi], 0
call edi
lea eax, [ebp - 0x5a4]
push eax
call fcn.00476d5c
add esp, 4
cmp eax, 0xffffffff
je 0x412558
mov byte [esi], 0
inc esi
jmp 0x412440
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0043f4a0
mov edx, dword [ebp - 0x17c]
add edx, 0xfffffff4
add esp, 4
cmp edx, dword [0x4bb670]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x4124cb
mov esi, dword [ebp - 0x17c]
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x4124cb
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x180]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4124ef
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x4124ef
push esi
call fcn.00473f58
add esp, 4
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x412505
mov edx, dword [ebp + 8]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x41208a
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00473515
add esp, 4
xor al, al
jmp 0x41241a
mov edx, dword [ebp - 0x184]
push edx
call fcn.0043f4a0
mov eax, dword [ebp - 0x17c]
add eax, 0xfffffff4
add esp, 4
cmp eax, dword [0x4bb670]
jmp 0x4124aa
push 0
call fcn.004741b6
mov edx, dword [ebp - 0x184]
push edx
call fcn.0043f4a0
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.00401940
lea ecx, [ebp - 0x180]
call fcn.00401940
lea ecx, [ebp + 8]
call fcn.0040ab10
lea ecx, [ebp + 0x24]
call fcn.0040ab10
xor al, al
jmp 0x41241a
mov eax, dword [ebp - 0x184]
push eax
call fcn.0043f4a0
add esp, 4
jmp 0x41256e
push edi
call fcn.0043f4a0
mov esi, dword [ebp - 0x17c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
add esp, 4
cmp edx, dword [0x4bb670]
je 0x4124cb
jmp 0x4124b8