Function at 0x406450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448bca
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x461068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
call fcn.0042e518
push eax
call fcn.0042df25
push str.Russian
push 0
call fcn.0042e5f7
add esp, 0x10
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x10], 4
push eax
push 0x104
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040c190
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call fcn.0040e27f
mov esi, eax
mov dword [ebp - 0x2c], edx
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040c190
cmp esi, edi
jae 0x4064d4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x406b94
lea eax, [ebp - 0x28]
mov ecx, 0x461e04
push eax
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40655b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406551
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b9e
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp + 8]
mov edx, esi
push eax
sub esp, 8
mov ecx, edi
call fcn.004043b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4066eb
xor esi, esi
mov dword [ebp - 0x10], esi
add eax, 0xffffffc1
cmp eax, 0x34
ja case.0x406595.64
movzx eax, byte [eax + 0x406be0]
jmp dword [eax*4 + 0x406bb8]
mov word [0x461de0], 1
jmp case.0x406595.64
mov word [0x461de0], 0x100
jmp case.0x406595.64
mov byte [0x461de4], 1
jmp case.0x406595.64
mov edx, dword [0x463c68]
test edx, edx
je 0x406613
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065d6
sub ecx, dword [ebp - 0x2c]
xor eax, eax
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004025c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
or esi, 0x19
jmp 0x406626
push 0x461e04
lea ecx, [ebp - 0x4c]
call fcn.004028b0
lea eax, [ebp - 0x4c]
or esi, 2
push eax
mov ecx, 0x461dec
mov dword [ebp - 0x10], esi
call fcn.004024e0
mov eax, esi
test al, 2
je 0x40667d
mov edx, dword [ebp - 0x38]
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
cmp edx, 8
jb 0x40667d
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406670
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b9e
push edx
push ecx
call fcn.00424e9e
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x4066c8
mov edx, dword [ebp - 0x14]
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
cmp edx, 8
jb 0x4066c8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b9e
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
sub esp, 8
mov ecx, edi
call fcn.004043b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406582
mov esi, dword [ebp - 0x34]
mov eax, dword [0x4619d8]
sub edi, eax
lea eax, [esi + eax*4]
cmp edi, 1
jl case.0x406595.63
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406705
sub ecx, esi
mov dword [ebp - 0x18], 0
sar ecx, 1
xor eax, eax
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004025c0
lea eax, [ebp - 0x28]
mov ecx, 0x461e1c
push eax
call fcn.004024e0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406817
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40680d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
jmp 0x40680d
mov byte [0x461de3], 1
jmp case.0x406595.64
push 0xa
push 0
push dword [0x463c68]
call fcn.0042f18c
add esp, 0xc
mov word [0x461de6], ax
mov byte [0x461de2], 1
jmp case.0x406595.64
push 0xa
push 0
push dword [0x463c68]
call fcn.0042f18c
add esp, 0xc
mov word [0x461de8], ax
mov byte [0x461de2], 1
jmp case.0x406595.64
push 0xa
push 0
push dword [0x463c68]
call fcn.0042f18c
add esp, 0xc
mov word [0x461dea], ax
mov byte [0x461de2], 1
jmp case.0x406595.64
call fcn.004091f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edx
push ecx
call fcn.00424e9e
add esp, 8
cmp byte [0x461de2], 0
mov eax, 0x461e1c
je 0x406a7b
cmp dword [0x461e30], 8
lea ecx, [ebp - 0x30]
push dword [0x461e2c]
cmovae eax, dword [0x461e1c]
push eax
call fcn.0040be70
add esp, 8
cmp dword [eax + 4], 0
jne 0x4068b3
push ecx
push str..img
lea ecx, [ebp - 0x4c]
call fcn.004092e0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 3
push eax
mov ecx, 0x461e1c
call fcn.0040bb60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x4068b3
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4068a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba8
push edx
push ecx
call fcn.00424e9e
add esp, 8
cmp byte [0x461de4], 0
je 0x406920
push ecx
push str..hdi
lea ecx, [ebp - 0x4c]
call fcn.004092e0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x461e1c
call fcn.0040bb60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x406920
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406916
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406bad
push edx
push ecx
call fcn.00424e9e
add esp, 8
cmp dword [0x461e30], 8
mov eax, 0x461e1c
push 0x4596dc
cmovae eax, dword [0x461e1c]
push eax
call fcn.00429d4a
mov esi, eax
add esp, 8
test esi, esi
je 0x406a5d
mov al, byte [0x461de1]
xorps xmm0, xmm0
mov cl, byte [0x461de4]
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x27], al
movzx eax, word [0x461de6]
mov word [ebp - 0x20], ax
movzx eax, word [0x461de8]
mov word [ebp - 0x1e], ax
movzx eax, word [0x461dea]
mov byte [ebp - 0x28], cl
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x24], 0
test cl, cl
je 0x406a37
lea ecx, [ebp - 0x4c]
call fcn.00404430
push ecx
push eax
mov edx, 0x463c70
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x4069fa
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406bb2
push edx
push ecx
call fcn.00424e9e
add esp, 8
push esi
push 0x200
push 1
push 0x463c70
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
je 0x406a37
cmp dword [0x461e30], 8
mov eax, 0x461e1c
cmovae eax, dword [0x461e1c]
push eax
push 0x4596e8
call fcn.0040b710
add esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00406cb0
push esi
call fcn.00429dd7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x461e30], 8
mov eax, 0x461e1c
cmovae eax, dword [0x461e1c]
push eax
push 0x459740
jmp 0x406b76
cmp dword [0x461e30], 8
push 0x4590e4
cmovae eax, dword [0x461e1c]
push eax
call fcn.00429d4a
mov esi, eax
add esp, 8
test esi, esi
je 0x406b5d
xorps xmm0, xmm0
lea edx, [ebp - 0x28]
mov ecx, esi
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00406cf0
test al, al
je 0x406b41
cmp byte [0x461de3], 0
lea edx, [ebp - 0x28]
mov ecx, esi
je 0x406b15
cmp byte [ebp - 0x27], 0
je 0x406af4
call fcn.0040d130
push esi
call fcn.00429dd7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040c9c0
push esi
call fcn.00429dd7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x27], 0
je 0x406b3c
call fcn.00407140
push esi
call fcn.00429dd7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00406f60
push esi
call fcn.00429dd7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x461e30], 8
mov eax, 0x461e1c
cmovae eax, dword [0x461e1c]
push eax
push 0x45977c
call fcn.0040b710
mov eax, 1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.current_path__
call fcn.0040c930
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
nop
cmc
inc eax
add byte [ebp + 0x67890040], bl
inc eax
add byte [ebp - 0x47ffbf99], ch
inc eax
add byte [edx + 0x7d004065], ch
inc eax
add ah, al
inc eax
add cl, dl
inc eax
add bl, cl
inc ax
add byte [eax], al
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], eax
or dword [edx], eax
or dword [ecx], ecx
or dword [ecx], ecx
add eax, dword [ecx + ecx]
or dword [ecx], ecx
add eax, 151455241
or dword [eax], ecx
int3