Function at 0x419f60
Capabilities:
Encode data using xor
Get file size
Get memory capacity
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x4d969d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x80]
mov ebx, dword [ebp + 0x7c]
mov dword [eax + 0x2c], 0
mov dword [ebp - 0x38], ecx
mov dword [ecx], 0
mov ecx, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [eax], 0
test ecx, ecx
je 0x419fc9
push ecx
call fcn.004ad06e
add esp, 4
push 0xfffe
call fcn.004ad065
push 0xfffe
mov esi, eax
push 0
push esi
mov dword [ebp - 0x2c], esi
call fcn.004affe0
add esp, 0x10
mov dword [ebp - 0x40], esi
mov ecx, ebx
mov dword [ebp - 4], 0
xor edi, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a000
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x41a031
cmp word [ebx], 0x5c
jne 0x41a031
cmp word [ebx + 2], 0x5c
lea esi, [ebx + 2]
jne 0x41a02e
mov ebx, dword [ebp - 0x2c]
mov eax, str._UNC
jmp 0x41a03b
mov esi, dword [ebp - 0x2c]
mov ebx, esi
mov eax, 0x4ebf30
mov esi, dword [ebp - 0x18]
push eax
push 0x7fff
push ebx
call fcn.004b30c0
push esi
push 0x7fff
push ebx
call fcn.004ba831
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
mov esi, 0x14
test edi, edi
je 0x41a068
push esi
call ebx
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebp - 0x14], eax
add esi, 0x32
cmp eax, 0xffffffff
jne 0x41a09c
cmp esi, 0x10e
jl 0x41a061
jmp 0x41a598
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ecx, edx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
lea esi, [ecx + 2]
mov dword [ebp + 0x6c], eax
jmp 0x41a0c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a0c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x58]
call fcn.00403450
mov byte [ebp - 4], 1
lea edx, [ebp + 0x58]
cmp dword [ebp + 0x6c], 7
mov esi, dword [ebp + 0x58]
seta bl
jbe 0x41a0ee
mov edx, esi
mov ecx, dword [ebp + 0x68]
test ecx, ecx
je 0x41a123
lea eax, [ecx - 1]
cmp eax, 0xffffffff
jb 0x41a100
or eax, 0xffffffff
cmp word [edx + eax*2], 0x5c
lea eax, [edx + eax*2]
je 0x41a11d
lea ebx, [ebx]
cmp eax, edx
je 0x41a123
sub eax, 2
cmp word [eax], 0x5c
jne 0x41a110
sub eax, edx
sar eax, 1
jmp 0x41a126
or eax, 0xffffffff
xor edx, edx
inc eax
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], edx
cmp ecx, eax
jb 0x41ad23
sub ecx, eax
cmp ecx, 0xffffffff
jb 0x41a14d
or ecx, 0xffffffff
lea edx, [ebp + 0x58]
test bl, bl
je 0x41a156
mov edx, esi
push ecx
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp + 0x40]
call fcn.00403450
mov esi, dword [ebp - 0x20]
lea eax, [ebp + 0x40]
add esi, 0x30
cmp esi, eax
je 0x41a1a7
mov ecx, esi
call fcn.004027a0
mov eax, dword [ebp + 0x40]
mov ecx, 7
mov dword [esi], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x48]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x54]
mov dword [esi + 0x14], eax
xor eax, eax
mov word [ebp + 0x40], ax
jmp 0x41a1aa
mov ecx, dword [ebp + 0x54]
cmp ecx, 7
jbe 0x41a1e1
mov edx, dword [ebp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a1d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
push ecx
push edx
call fcn.004accfd
add esp, 8
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41a23d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x6c]
cmp ecx, 7
jbe 0x41a588
mov edx, dword [ebp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a22e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
push ecx
push edx
call fcn.004accfd
add esp, 8
jmp 0x41a588
push 0x3c
lea eax, [ebp + 4]
mov dword [ebp], 0x40
push 0
push eax
call fcn.004affe0
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x34]
shrd esi, eax, 2
mov dword [ebp - 0x24], 0
cmp edi, esi
jae 0x41a278
mov esi, edi
cmp dword [ebp - 0x30], 0
je 0x41a283
mov esi, 0x7a120
cmp esi, edi
jae 0x41a5c4
lea edi, [esi + 1]
mov byte [ebp - 4], 2
push edi
call fcn.004ad065
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push edi
push 0
push ebx
call fcn.004affe0
add esp, 0xc
mov dword [ebp - 0x3c], ebx
push 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push esi
mov esi, dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a2de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004ad06e
add esp, 4
jmp 0x41a1fa
mov esi, dword [ebp - 0x24]
cmp esi, 2
jge 0x41a2f5
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0xfeff
jmp 0x41a483
mov edi, ebx
lea ecx, [ebx + 2]
lea eax, [esi - 2]
xor edx, edx
xor ebx, ebx
test eax, eax
jle 0x41a33d
lea esi, [eax - 1]
shr esi, 1
inc esi
jmp 0x41a310
mov ax, word [edi]
lea edi, [edi + 2]
mov dword [ebp - 0x18], 0
cmp word [ebp - 0x18], ax
jne 0x41a324
inc ebx
cmp byte [ecx], 0
jne 0x41a32a
inc edx
mov al, byte [ecx + 1]
add ecx, 2
test al, al
jne 0x41a335
inc edx
sub esi, 1
jne 0x41a310
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0xfeff
cmp ebx, dword [edi + 0x4c]
mov ebx, dword [ebp - 0x1c]
jle 0x41a359
mov eax, 1
jmp 0x41a488
movzx eax, word [ebx]
mov ecx, eax
cmp ax, word [ebp - 0x18]
jne 0x41a36e
mov eax, 3
jmp 0x41a488
mov eax, 0xfffe
cmp cx, ax
jne 0x41a382
mov eax, 4
jmp 0x41a488
cmp edx, 3
jle 0x41a3a3
mov eax, esi
and eax, 0x80000001
jns 0x41a397
dec eax
or eax, 0xfffffffe
add eax, 1
jne 0x41a3a3
mov eax, 3
jmp 0x41a488
cmp esi, 3
jl 0x41a483
mov edx, 0xbbef
cmp cx, dx
jne 0x41a3c6
cmp byte [ebx + 2], 0xbf
jne 0x41a3c6
mov eax, 5
jmp 0x41a488
xor ecx, ecx
mov edx, ebx
test esi, esi
jle 0x41a3f0
mov edi, edi
mov al, byte [edx]
cmp al, 0xc0
je 0x41a483
cmp al, 0xc1
je 0x41a483
cmp al, 0xf5
jae 0x41a483
inc ecx
inc edx
cmp ecx, esi
jl 0x41a3d0
mov eax, dword [ebp - 0x24]
mov ecx, ebx
add eax, 0xfffffffc
xor bl, bl
xor esi, esi
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x41a480
mov dl, byte [ecx]
mov al, dl
and al, 0xe0
cmp al, 0xc0
jne 0x41a41c
mov dl, byte [ecx + 1]
inc ecx
mov al, dl
inc esi
and al, 0xc0
cmp al, 0x80
jne 0x41a480
mov bl, 1
mov al, dl
and al, 0xf0
cmp al, 0xe0
jne 0x41a440
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x41a480
mov dl, byte [ecx + 2]
add ecx, 2
mov al, dl
add esi, 2
and al, 0xc0
cmp al, 0x80
jne 0x41a480
mov bl, 1
and dl, 0xf8
cmp dl, 0xf0
jne 0x41a46b
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x41a480
mov al, byte [ecx + 2]
and al, 0xc0
cmp al, 0x80
jne 0x41a480
mov al, byte [ecx + 3]
add ecx, 3
and al, 0xc0
add esi, 3
cmp al, 0x80
jne 0x41a480
mov bl, 1
inc esi
inc ecx
cmp esi, dword [ebp - 0x28]
jl 0x41a403
test bl, bl
je 0x41a480
mov ebx, dword [ebp - 0x1c]
mov eax, 5
jmp 0x41a488
mov ebx, dword [ebp - 0x1c]
mov eax, 2
cmp dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x2c], eax
mov dword [ecx], eax
je 0x41a4ad
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004ad06e
add esp, 4
jmp 0x41a1fa
mov eax, dword [edi + 0x2c]
sub eax, 1
je 0x41a51f
sub eax, 1
je 0x41a51f
sub eax, 3
je 0x41a51f
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.004ad065
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x44]
add esp, 0xc
cmp edi, eax
je 0x41a4eb
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41a4f4
push eax
jmp 0x41a4ec
push esi
call fcn.004ad06e
add esp, 4
cmp dword [edi], 0
mov esi, dword [ebp - 0x1c]
je 0x41a511
xor edx, edx
cmp dword [ebp - 0x24], edx
jbe 0x41a511
mov eax, dword [edi]
mov cl, byte [esi + edx]
mov byte [eax + edx], cl
inc edx
cmp edx, dword [ebp - 0x24]
jb 0x41a503
push esi
call fcn.004ad06e
mov ebx, dword [ebp - 0x14]
jmp 0x41a60a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004ad06e
add esp, 4
mov ecx, dword [ebp + 0x6c]
cmp ecx, 7
jbe 0x41a588
mov edx, dword [ebp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a22e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
jmp 0x41a22e
xor eax, eax
mov dword [ebp + 0x6c], 7
mov word [ebp + 0x58], ax
mov dword [ebp + 0x68], eax
push dword [ebp - 0x2c]
call fcn.004ad06e
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.004accbf
lea esp, [ebp + 0x74]
pop ebp
ret 0x10
push edi
mov byte [ebp - 4], 5
call fcn.004ad065
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.004affe0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
add esp, 0xc
cmp edi, eax
je 0x41a5fd
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41a5f4
push eax
jmp 0x41a5fe
mov dword [ebp - 0x18], 0xfeff
jmp 0x41a60d
push esi
call fcn.004ad06e
mov dword [ebp - 0x18], 0xfeff
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [edi]
test eax, eax
je 0x41acfc
push 0
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41acfc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x34]
mov dword [edi + 4], eax
test ecx, ecx
jne 0x41a8b0
mov ecx, dword [edi]
mov edi, dword [ebp - 0x24]
cmp edi, 2
jl 0x41a7ea
lea eax, [edi - 2]
mov dword [ebp - 0x14], ecx
xor ebx, ebx
lea edx, [ecx + 2]
xor esi, esi
mov dword [ebp - 0x1c], ebx
test eax, eax
mov eax, ecx
jle 0x41a6b3
lea ebx, [edi - 3]
shr ebx, 1
inc ebx
lea esp, [esp]
mov ax, word [eax]
add dword [ebp - 0x14], 2
mov dword [ebp - 0x28], 0
cmp word [ebp - 0x28], ax
jne 0x41a697
inc dword [ebp - 0x1c]
cmp byte [edx], 0
jne 0x41a69d
inc esi
mov al, byte [edx + 1]
add edx, 2
test al, al
jne 0x41a6a8
inc esi
mov eax, dword [ebp - 0x14]
sub ebx, 1
jne 0x41a680
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ebx, dword [eax + 0x4c]
jle 0x41a6c5
mov eax, 1
jmp 0x41a7ef
movzx eax, word [ecx]
mov edx, eax
cmp ax, word [ebp - 0x18]
jne 0x41a6da
mov eax, 3
jmp 0x41a7ef
mov eax, 0xfffe
cmp dx, ax
jne 0x41a6ee
mov eax, 4
jmp 0x41a7ef
cmp esi, 3
jle 0x41a70f
mov eax, edi
and eax, 0x80000001
jns 0x41a703
dec eax
or eax, 0xfffffffe
add eax, 1
jne 0x41a70f
mov eax, 3
jmp 0x41a7ef
cmp edi, 3
jl 0x41a7ea
mov eax, 0xbbef
cmp dx, ax
jne 0x41a732
cmp byte [ecx + 2], 0xbf
jne 0x41a732
mov eax, 5
jmp 0x41a7ef
xor edx, edx
mov esi, ecx
test edi, edi
jle 0x41a760
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0xc0
je 0x41a7ea
cmp al, 0xc1
je 0x41a7ea
cmp al, 0xf5
jae 0x41a7ea
inc edx
inc esi
cmp edx, edi
jl 0x41a740
lea eax, [edi - 4]
xor bl, bl
xor esi, esi
test eax, eax
jle 0x41a7ea
jmp 0x41a770
mov dl, byte [ecx]
mov al, dl
and al, 0xe0
cmp al, 0xc0
jne 0x41a789
mov dl, byte [ecx + 1]
inc ecx
mov al, dl
inc esi
and al, 0xc0
cmp al, 0x80
jne 0x41a7ea
mov bl, 1
mov al, dl
and al, 0xf0
cmp al, 0xe0
jne 0x41a7ad
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x41a7ea
mov dl, byte [ecx + 2]
add ecx, 2
mov al, dl
add esi, 2
and al, 0xc0
cmp al, 0x80
jne 0x41a7ea
mov bl, 1
and dl, 0xf8
cmp dl, 0xf0
jne 0x41a7d8
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x41a7ea
mov al, byte [ecx + 2]
and al, 0xc0
cmp al, 0x80
jne 0x41a7ea
mov al, byte [ecx + 3]
add ecx, 3
and al, 0xc0
add esi, 3
cmp al, 0x80
jne 0x41a7ea
mov bl, 1
inc esi
lea eax, [edi - 4]
inc ecx
cmp esi, eax
jl 0x41a770
mov eax, 5
test bl, bl
jne 0x41a7ef
mov eax, 2
mov esi, dword [ebp - 0x20]
mov ecx, eax
mov dl, byte [ebp + 0x84]
mov dword [esi + 0x2c], eax
test dl, dl
je 0x41a8bc
cmp eax, 1
je 0x41a8bc
mov dword [esi + 0x2c], 5
push 0
push 0
push edi
mov byte [ebp - 4], 0xb
push dword [esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004ad065
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004affe0
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov ebx, dword [ebp - 0x20]
lea eax, [edi + 1]
push eax
push esi
mov byte [ebp - 4], 0xc
push dword [ebp - 0x24]
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x41ac03
cmp edi, 1
jle 0x41abf9
mov eax, dword [ebp - 0x18]
cmp word [esi], ax
jne 0x41abf9
lea eax, [edi - 1]
push eax
lea eax, [esi + 2]
lea ecx, [ebx + 8]
push eax
call fcn.00403a40
mov byte [ebx + 0x48], 1
jmp 0x41ac03
mov dl, byte [ebp + 0x84]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
cmp ecx, 3
jne 0x41a9fe
mov byte [ebp - 4], 7
cmp edi, 1
jbe 0x41a9de
mov eax, dword [esi]
cmp byte [eax], 0xff
jne 0x41a9de
mov ecx, dword [esi + 0x1c]
lea ebx, [esi + 8]
shr edi, 1
lea edx, [eax + 2]
dec edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp edi, ecx
ja 0x41a92a
mov dword [ebp - 0x14], ebx
mov eax, ebx
cmp ecx, 7
jbe 0x41a902
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea esi, [edi + edi]
mov dword [ebx + 0x10], edi
push esi
push edx
push eax
call fcn.004afa60
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov byte [eax + 0x48], 1
jmp 0x41ac0c
cmp edi, 0x7ffffffe
ja 0x41ad2d
mov edx, edi
mov eax, 0x7ffffffe
or edx, 7
cmp edx, eax
ja 0x41a95e
mov esi, ecx
shr esi, 1
sub eax, esi
cmp ecx, eax
jbe 0x41a955
mov eax, 0x7ffffffe
jmp 0x41a95e
lea eax, [esi + ecx]
cmp edx, eax
jb 0x41a95e
mov eax, edx
lea esi, [eax + 1]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ebx
call fcn.00402690
add esp, 8
mov dword [ebx + 0x10], edi
lea ecx, [esi - 1]
mov dword [ebp - 0x28], eax
lea esi, [edi + edi]
mov dword [ebx + 0x14], ecx
mov edi, eax
push esi
push dword [ebp - 0x14]
push edi
call fcn.004afa60
xor eax, eax
mov word [esi + edi], ax
mov ecx, dword [ebp - 0x18]
add esp, 0xc
cmp ecx, 7
jbe 0x41a9ce
mov eax, dword [ebx]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41a9c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
mov eax, edx
push ecx
push eax
call fcn.004accfd
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebx], edi
mov ebx, eax
mov byte [eax + 0x48], 1
jmp 0x41ac0c
shr edi, 1
lea ecx, [esi + 8]
push edi
push dword [esi]
call fcn.00403a40
mov ebx, dword [ebp - 0x20]
jmp 0x41ac0c
cmp ecx, 4
jne 0x41ab80
mov eax, dword [esi]
mov ebx, edi
shr ebx, 3
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x41aa65
lea ebx, [ebx]
mov edx, dword [eax + ecx*8]
mov esi, dword [eax + ecx*8 + 4]
mov eax, edx
mov ecx, esi
shld esi, edx, 8
shrd eax, ecx, 8
shl edx, 8
shr ecx, 8
xor edx, eax
xor esi, ecx
and edx, 0xff00ff00
and esi, 0xff00ff00
xor edx, eax
mov eax, dword [ebp - 0x18]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + ecx*8], edx
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
jl 0x41aa20
mov edi, dword [ebp - 0x24]
mov esi, edi
lea edx, [ebx*4]
shr esi, 1
cmp edx, esi
jae 0x41aa8b
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
inc edx
cmp edx, esi
jl 0x41aa74
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 9
cmp edi, 1
jbe 0x41ab60
mov ecx, dword [eax]
cmp byte [ecx], 0xff
jne 0x41ab60
shr edi, 1
lea ebx, [eax + 8]
lea edx, [ecx + 2]
dec edi
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp edi, ecx
ja 0x41aaf3
mov dword [ebp - 0x14], ebx
mov eax, ebx
cmp ecx, 7
jbe 0x41aacb
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea esi, [edi + edi]
mov dword [ebx + 0x10], edi
push esi
push edx
push eax
call fcn.004afa60
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov byte [eax + 0x48], 1
jmp 0x41ac0c
cmp edi, 0x7ffffffe
ja 0x41ad32
mov edx, edi
mov eax, 0x7ffffffe
or edx, 7
cmp edx, eax
ja 0x41ab27
mov esi, ecx
shr esi, 1
sub eax, esi
cmp ecx, eax
jbe 0x41ab1e
mov eax, 0x7ffffffe
jmp 0x41ab27
lea eax, [esi + ecx]
cmp edx, eax
jb 0x41ab27
mov eax, edx
lea esi, [eax + 1]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ebx
call fcn.00402690
add esp, 8
mov dword [ebx + 0x10], edi
lea ecx, [esi - 1]
mov dword [ebp - 0x28], eax
lea esi, [edi + edi]
mov dword [ebx + 0x14], ecx
mov edi, eax
push esi
push dword [ebp - 0x14]
push edi
call fcn.004afa60
xor eax, eax
mov word [edi + esi], ax
jmp 0x41a992
shr edi, 1
lea ecx, [eax + 8]
push edi
push dword [eax]
call fcn.00403a40
mov ebx, dword [ebp - 0x20]
jmp 0x41ac0c
cmp ecx, 5
je 0x41a815
cmp ecx, 1
jne 0x41ab96
test dl, dl
jne 0x41a815
push 0
push 0
push edi
mov byte [ebp - 4], 0xe
push dword [esi]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004ad065
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004affe0
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov ebx, dword [ebp - 0x20]
lea eax, [edi + 1]
push eax
push esi
mov byte [ebp - 4], 0xf
push dword [ebp - 0x24]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x41ac03
push edi
push esi
lea ecx, [ebx + 8]
call fcn.00403a40
push esi
call fcn.004ad06e
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x2c]
mov dword [ecx], eax
cmp eax, 1
jne 0x41ac8b
mov ecx, dword [ebp + 0x6c]
cmp ecx, 7
jbe 0x41ac5a
mov edx, dword [ebp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ac50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
push ecx
push edx
call fcn.004accfd
add esp, 8
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 7
mov word [ebp + 0x58], ax
call fcn.004ad06e
add esp, 4
mov al, 1
jmp 0x41a5a5
push ecx
mov ecx, ebx
call fcn.0041b290
mov ecx, dword [ebp + 0x6c]
mov bl, al
cmp ecx, 7
jbe 0x41accb
mov edx, dword [ebp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41acc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad28
push ecx
push edx
call fcn.004accfd
add esp, 8
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 7
mov word [ebp + 0x58], ax
call fcn.004ad06e
add esp, 4
mov al, bl
jmp 0x41a5a5
mov eax, dword [edi]
mov dword [edi], 0
test eax, eax
je 0x41ad11
push eax
call fcn.004ad06e
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a531
call fcn.00404b30
call fcn.004b306f
call fcn.004026f0
call fcn.004026f0
int3