Function at 0x4643c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476da2
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x495094]
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
mov eax, dword [ebp - 0x70]
and eax, 0xfffffe07
mov dword [ebp - 0x6c], 0
or eax, 7
mov dword [ebp - 0x68], 0
push 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], 0
call fcn.0042a15d
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f200
mov dword [esi], eax
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 3
mov edi, dword [ebp + 8]
mov esi, dword [edi]
cmp esi, edi
je 0x46466f
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x10]
mov dword [ebp - 0x2c], 0xf
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401780
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea eax, [ebx + 0x18]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401780
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x58], 4
mov eax, dword [ebp - 0x58]
or eax, 0x100
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x48], eax
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.0046be20
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ebx, [ebp - 0x40]
lea ecx, [ebp - 0x78]
cmovae eax, dword [ebp - 0x40]
cmovae ebx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x44]
push eax
push ebx
call fcn.0046ad20
mov cl, byte [ebp - 0x58]
mov ebx, eax
mov eax, dword [ebp - 0x48]
movsx edx, byte [ebx + 8]
xor edx, eax
mov byte [ebx + 8], cl
movzx ecx, dl
mov edx, dword [ebx + 4]
xor eax, ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 4], eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebx + 8]
mov eax, ecx
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x48]
xor eax, edx
and eax, 0x100
xor eax, ecx
xor ecx, edx
and ecx, 0x100
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
xor edx, ecx
mov dword [ebp - 0x58], edx
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x60]
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x14], 0
mov dword [ebp - 0x4c], eax
call fcn.0046ce00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4645cb
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4645c2
test cl, 0x1f
jne 0x4647e4
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4647e4
sub ecx, eax
cmp ecx, 4
jb 0x4647e4
cmp ecx, 0x23
ja 0x4647e4
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x464623
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x46461a
test cl, 0x1f
jne 0x4647e4
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4647e4
sub ecx, eax
cmp ecx, 4
jb 0x4647e4
cmp ecx, 0x23
ja 0x4647e4
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
cmp byte [esi + 0xd], 0
jne 0x464667
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x46464c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x464667
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x464640
jmp 0x464667
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x464665
cmp esi, dword [eax + 8]
jne 0x464665
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x464655
mov esi, eax
cmp esi, edi
jne 0x464450
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x464778
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x44], esp
mov byte [eax + 8], 2
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax], ecx
mov dword [eax + 4], 0
push 0x48671d
push str.cmdId
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046cd80
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x44], esp
mov byte [eax + 8], 1
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax], 1
mov dword [eax + 4], 0
push 0x486715
push 0x486714
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046cd80
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x44], esp
mov byte [eax + 8], 1
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax], 1
mov dword [eax + 4], 0
push 0x48673d
push 0x48673c
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046cd80
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00465b20
mov eax, dword [ebp - 0x50]
push 1
mov dword [ebp - 0x48], eax
call fcn.00445aef
push eax
push 1
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0044643a
cmp dword [ebp - 0x4c], 0x10
lea esi, [ebp - 0x60]
push 1
cmovae esi, dword [ebp - 0x60]
call fcn.00445aef
push eax
push dword [ebp - 0x48]
push 1
push esi
call fcn.0044643a
push 1
call fcn.00445aef
push eax
call fcn.004461a9
mov eax, dword [ebp - 0x4c]
add esp, 0x30
cmp eax, 0x10
jb 0x464816
mov ecx, dword [ebp - 0x60]
inc eax
cmp eax, 0x1000
jb 0x46480d
test cl, 0x1f
je 0x4647e9
call fcn.00445fcb
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4647f5
call fcn.00445fcb
sub ecx, eax
cmp ecx, 4
jae 0x464801
call fcn.00445fcb
cmp ecx, 0x23
jbe 0x46480b
call fcn.00445fcb
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.0046ce00
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push eax
push dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.00403c70
push dword [ebp + 8]
call fcn.0042a190
mov ecx, dword [ebp + 0x20]
add esp, 4
test ecx, ecx
je 0x4648ba
push dword [ebp - 0x44]
mov edx, dword [ebp + 0x24]
push ecx
call fcn.00405b10
mov ecx, dword [ebp + 0x28]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 0x20]
add esp, 8
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x464876
call fcn.00445fcb
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x4648b1
test bl, 0x1f
je 0x46488d
call fcn.00445fcb
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x464899
call fcn.00445fcb
sub ebx, eax
cmp ebx, 4
jae 0x4648a5
call fcn.00445fcb
cmp ebx, 0x23
jbe 0x4648af
call fcn.00445fcb
mov ebx, eax
push ebx
call fcn.0042a190
add esp, 4
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.0042a14c
mov esp, ebp
pop ebp
ret 0x28