Function at 0x479140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3c94
call fcn.0047e580
mov eax, dword [0x504ff8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c6c], 0
mov dword [ebp - 0x3c70], 0
mov dword [ebp - 0x3c1c], 0
mov eax, dword [ebp - 0x3c1c]
mov dword [ebp - 0x3c30], eax
cmp dword [ebp + 0x10], 0
jne 0x47918e
xor eax, eax
jmp 0x479ebd
cmp dword [ebp + 0xc], 0
je 0x4791a0
mov dword [ebp - 0x3c84], 1
jmp 0x4791aa
mov dword [ebp - 0x3c84], 0
mov ecx, dword [ebp - 0x3c84]
mov dword [ebp - 0x3c78], ecx
cmp dword [ebp - 0x3c78], 0
jne 0x4791e2
push str._buf___NULL_
push 0x4ee368
push 0
push 0x6c
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00484e10
add esp, 0x18
cmp eax, 1
jne 0x4791e2
int3
cmp dword [ebp - 0x3c78], 0
jne 0x479224
call fcn.0047f190
mov dword [eax], 0
call fcn.0047f1f0
mov dword [eax], 0x16
push 0
push 0x6c
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push str._write_nolock
push str._buf___NULL_
call fcn.00484530
add esp, 0x14
or eax, 0xffffffff
jmp 0x479ebd
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov al, byte [edx + ecx + 0x24]
shl al, 1
sar al, 1
mov byte [ebp - 0x3c11], al
movsx ecx, byte [ebp - 0x3c11]
cmp ecx, 2
je 0x479264
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
jne 0x4792fc
mov eax, dword [ebp + 0x10]
and eax, 1
jne 0x479278
mov dword [ebp - 0x3c80], 1
jmp 0x479282
mov dword [ebp - 0x3c80], 0
mov ecx, dword [ebp - 0x3c80]
mov dword [ebp - 0x3c88], ecx
cmp dword [ebp - 0x3c88], 0
jne 0x4792ba
push str.__cnt__1___0_
push 0x4ee368
push 0
push 0x74
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00484e10
add esp, 0x18
cmp eax, 1
jne 0x4792ba
int3
cmp dword [ebp - 0x3c88], 0
jne 0x4792fc
call fcn.0047f190
mov dword [eax], 0
call fcn.0047f1f0
mov dword [eax], 0x16
push 0
push 0x74
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push str._write_nolock
push str.__cnt__1___0_
call fcn.00484530
add esp, 0x14
or eax, 0xffffffff
jmp 0x479ebd
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
movsx eax, byte [edx + ecx + 4]
and eax, 0x20
je 0x47932e
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00493df0
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.00493ac0
add esp, 4
test eax, eax
je 0x4793d8
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x4793d8
call fcn.00482a30
mov dword [ebp - 0x3c90], eax
mov ecx, dword [ebp - 0x3c90]
mov edx, dword [ecx + 0x6c]
mov eax, 4
shl eax, 1
cmp dword [edx + eax + 0xa0], 0
jne 0x479395
mov dword [ebp - 0x3c7c], 1
jmp 0x47939f
mov dword [ebp - 0x3c7c], 0
mov ecx, dword [ebp - 0x3c7c]
mov dword [ebp - 0x3c70], ecx
lea edx, [ebp - 0x3c94]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x3c6c], eax
cmp dword [ebp - 0x3c6c], 0
je 0x4798dd
cmp dword [ebp - 0x3c70], 0
je 0x4793fd
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
je 0x4798dd
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov dword [ebp - 0x3c8c], eax
mov dword [ebp - 0x3c40], 0
mov dword [ebp - 0x3c60], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c20], edx
mov eax, dword [ebp - 0x3c20]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x4798d8
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x47964b
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x479461
mov dword [ebp - 0x3c74], 1
jmp 0x47946b
mov dword [ebp - 0x3c74], 0
mov ecx, dword [ebp - 0x3c74]
mov dword [ebp - 0x3c64], ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x510c88]
cmp dword [ecx + eax + 0x38], 0
je 0x479562
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x510c88]
movsx edx, byte [ecx + eax + 0x34]
push edx
call fcn.00487640
add esp, 4
test eax, eax
jne 0x4794e6
push str.isleadbyte__dbcsBuffer_fh__
push 0x4ee368
push 0
push 0xae
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00484e10
add esp, 0x18
cmp eax, 1
jne 0x4794e6
int3
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
mov ecx, 1
imul ecx, ecx, 0
mov dl, byte [eax + edx + 0x34]
mov byte [ebp + ecx - 0xc], dl
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x3c20]
mov dl, byte [ecx]
mov byte [ebp + eax - 0xc], dl
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov dword [edx + ecx + 0x38], 0
push 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00494100
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47955d
jmp 0x4798d8
jmp 0x47963a
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
push eax
call fcn.00487640
add esp, 4
test eax, eax
je 0x479618
mov ecx, dword [ebp - 0x3c20]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub edx, ecx
cmp edx, 1
jbe 0x4795c2
push 2
mov eax, dword [ebp - 0x3c20]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00494100
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4795b1
jmp 0x4798d8
mov edx, dword [ebp - 0x3c20]
add edx, 1
mov dword [ebp - 0x3c20], edx
jmp 0x479616
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov eax, dword [ebp - 0x3c20]
mov al, byte [eax]
mov byte [edx + ecx + 0x34], al
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
mov dword [eax + edx + 0x38], 1
mov ecx, dword [ebp - 0x3c1c]
add ecx, 1
mov dword [ebp - 0x3c1c], ecx
jmp 0x4798d8
jmp 0x47963a
push 1
mov edx, dword [ebp - 0x3c20]
push edx
lea eax, [ebp - 0x3c18]
push eax
call fcn.00494100
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47963a
jmp 0x4798d8
mov ecx, dword [ebp - 0x3c20]
add ecx, 1
mov dword [ebp - 0x3c20], ecx
jmp 0x4796b0
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
je 0x479663
movsx eax, byte [ebp - 0x3c11]
cmp eax, 2
jne 0x4796b0
mov ecx, dword [ebp - 0x3c20]
mov dx, word [ecx]
mov word [ebp - 0x3c18], dx
movzx eax, word [ebp - 0x3c18]
cmp eax, 0xa
jne 0x47968b
mov dword [ebp - 0x3c68], 1
jmp 0x479695
mov dword [ebp - 0x3c68], 0
mov ecx, dword [ebp - 0x3c68]
mov dword [ebp - 0x3c64], ecx
mov edx, dword [ebp - 0x3c20]
add edx, 2
mov dword [ebp - 0x3c20], edx
movsx eax, byte [ebp - 0x3c11]
test eax, eax
jne 0x47980f
push 0
push 0
push 5
lea ecx, [ebp - 0xc]
push ecx
push 1
lea edx, [ebp - 0x3c18]
push edx
push 0
mov eax, dword [ebp - 0x3c8c]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3c40], eax
cmp dword [ebp - 0x3c40], 0
jne 0x4796f7
jmp 0x4798d8
push 0
lea ecx, [ebp - 0x3c60]
push ecx
mov edx, dword [ebp - 0x3c40]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x479759
mov edx, dword [ebp - 0x3c20]
sub edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x3c30]
mov dword [ebp - 0x3c1c], edx
mov eax, dword [ebp - 0x3c60]
cmp eax, dword [ebp - 0x3c40]
jge 0x479757
jmp 0x4798d8
jmp 0x47976a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4798d8
cmp dword [ebp - 0x3c64], 0
je 0x47980a
mov dword [ebp - 0x3c40], 1
mov ecx, 1
imul ecx, ecx, 0
mov byte [ebp + ecx - 0xc], 0xd
push 0
lea edx, [ebp - 0x3c60]
push edx
mov eax, dword [ebp - 0x3c40]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x510c88]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4797f9
mov eax, dword [ebp - 0x3c60]
cmp eax, dword [ebp - 0x3c40]
jge 0x4797d9
jmp 0x4798d8
mov ecx, dword [ebp - 0x3c30]
add ecx, 1
mov dword [ebp - 0x3c30], ecx
mov edx, dword [ebp - 0x3c1c]
add edx, 1
mov dword [ebp - 0x3c1c], edx
jmp 0x47980a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4798d8
jmp 0x4798d3
movsx eax, byte [ebp - 0x3c11]
cmp eax, 1
je 0x47982b
movsx ecx, byte [ebp - 0x3c11]
cmp ecx, 2
jne 0x4798d3
movzx edx, word [ebp - 0x3c18]
push edx
call fcn.004941b0
add esp, 4
movzx eax, ax
movzx ecx, word [ebp - 0x3c18]
cmp eax, ecx
jne 0x47985a
mov edx, dword [ebp - 0x3c1c]
add edx, 2
mov dword [ebp - 0x3c1c], edx
jmp 0x479868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4798d8
cmp dword [ebp - 0x3c64], 0
je 0x4798d3
mov dword [ebp - 0x3c40], 1
mov eax, 0xd
mov word [ebp - 0x3c18], ax
movzx ecx, word [ebp - 0x3c18]
push ecx
call fcn.004941b0
add esp, 4
movzx edx, ax
movzx eax, word [ebp - 0x3c18]
cmp edx, eax
jne 0x4798c5
mov ecx, dword [ebp - 0x3c1c]
add ecx, 1
mov dword [ebp - 0x3c1c], ecx
mov edx, dword [ebp - 0x3c30]
add edx, 1
mov dword [ebp - 0x3c30], edx
jmp 0x4798d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4798d8
jmp 0x479426
jmp 0x479e14
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x479dbb
mov dword [ebp - 0x3c24], 0
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x479a78
mov dword [ebp - 0x3c48], 0
mov dword [ebp - 0x3c2c], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c48], edx
mov eax, dword [ebp - 0x3c48]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x479a73
lea ecx, [ebp - 0x2810]
mov dword [ebp - 0x3c2c], ecx
mov edx, dword [ebp - 0x3c2c]
lea eax, [ebp - 0x2810]
sub edx, eax
cmp edx, 0x13ff
jae 0x4799f1
mov ecx, dword [ebp - 0x3c48]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4799f1
mov edx, dword [ebp - 0x3c48]
mov al, byte [edx]
mov byte [ebp - 0x3c25], al
mov ecx, dword [ebp - 0x3c48]
add ecx, 1
mov dword [ebp - 0x3c48], ecx
movsx edx, byte [ebp - 0x3c25]
cmp edx, 0xa
jne 0x4799cf
mov eax, dword [ebp - 0x3c30]
add eax, 1
mov dword [ebp - 0x3c30], eax
mov ecx, dword [ebp - 0x3c2c]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x3c2c]
add edx, 1
mov dword [ebp - 0x3c2c], edx
mov eax, dword [ebp - 0x3c2c]
mov cl, byte [ebp - 0x3c25]
mov byte [eax], cl
mov edx, dword [ebp - 0x3c2c]
add edx, 1
mov dword [ebp - 0x3c2c], edx
jmp 0x479957
push 0
lea eax, [ebp - 0x3c3c]
push eax
mov ecx, dword [ebp - 0x3c2c]
lea edx, [ebp - 0x2810]
sub ecx, edx
push ecx
lea eax, [ebp - 0x2810]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x479a60
mov edx, dword [ebp - 0x3c1c]
add edx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c1c], edx
mov eax, dword [ebp - 0x3c2c]
lea ecx, [ebp - 0x2810]
sub eax, ecx
cmp dword [ebp - 0x3c3c], eax
jge 0x479a5e
jmp 0x479a73
jmp 0x479a6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x479a73
jmp 0x479939
jmp 0x479db9
movsx edx, byte [ebp - 0x3c11]
cmp edx, 2
jne 0x479be2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c54], eax
mov dword [ebp - 0x3c34], 0
mov ecx, dword [ebp - 0x3c54]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x479bdd
lea edx, [ebp - 0x3c10]
mov dword [ebp - 0x3c34], edx
mov eax, dword [ebp - 0x3c34]
lea ecx, [ebp - 0x3c10]
sub eax, ecx
cmp eax, 0x13fe
jae 0x479b5b
mov edx, dword [ebp - 0x3c54]
sub edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
jae 0x479b5b
mov eax, dword [ebp - 0x3c54]
mov cx, word [eax]
mov word [ebp - 0x3c5c], cx
mov edx, dword [ebp - 0x3c54]
add edx, 2
mov dword [ebp - 0x3c54], edx
movzx eax, word [ebp - 0x3c5c]
cmp eax, 0xa
jne 0x479b37
mov ecx, dword [ebp - 0x3c30]
add ecx, 2
mov dword [ebp - 0x3c30], ecx
mov edx, 0xd
mov eax, dword [ebp - 0x3c34]
mov word [eax], dx
mov ecx, dword [ebp - 0x3c34]
add ecx, 2
mov dword [ebp - 0x3c34], ecx
mov edx, dword [ebp - 0x3c34]
mov ax, word [ebp - 0x3c5c]
mov word [edx], ax
mov ecx, dword [ebp - 0x3c34]
add ecx, 2
mov dword [ebp - 0x3c34], ecx
jmp 0x479ab9
push 0
lea edx, [ebp - 0x3c3c]
push edx
mov eax, dword [ebp - 0x3c34]
lea ecx, [ebp - 0x3c10]
sub eax, ecx
push eax
lea edx, [ebp - 0x3c10]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x479bca
mov ecx, dword [ebp - 0x3c1c]
add ecx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c1c], ecx
mov edx, dword [ebp - 0x3c34]
lea eax, [ebp - 0x3c10]
sub edx, eax
cmp dword [ebp - 0x3c3c], edx
jge 0x479bc8
jmp 0x479bdd
jmp 0x479bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x479bdd
jmp 0x479a9b
jmp 0x479db9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c44], ecx
mov dword [ebp - 0x3c38], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c44], edx
mov eax, dword [ebp - 0x3c44]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x479db9
mov dword [ebp - 0x3c50], 0
lea ecx, [ebp - 0x6b8]
mov dword [ebp - 0x3c38], ecx
mov edx, dword [ebp - 0x3c38]
lea eax, [ebp - 0x6b8]
sub edx, eax
cmp edx, 0x6a8
jae 0x479cb6
mov ecx, dword [ebp - 0x3c44]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x479cb6
mov edx, dword [ebp - 0x3c44]
mov ax, word [edx]
mov word [ebp - 0x3c58], ax
mov ecx, dword [ebp - 0x3c44]
add ecx, 2
mov dword [ebp - 0x3c44], ecx
movzx edx, word [ebp - 0x3c58]
cmp edx, 0xa
jne 0x479c92
mov eax, 0xd
mov ecx, dword [ebp - 0x3c38]
mov word [ecx], ax
mov edx, dword [ebp - 0x3c38]
add edx, 2
mov dword [ebp - 0x3c38], edx
mov eax, dword [ebp - 0x3c38]
mov cx, word [ebp - 0x3c58]
mov word [eax], cx
mov edx, dword [ebp - 0x3c38]
add edx, 2
mov dword [ebp - 0x3c38], edx
jmp 0x479c26
push 0
push 0
push 0xd55
lea eax, [ebp - 0x1410]
push eax
mov eax, dword [ebp - 0x3c38]
lea ecx, [ebp - 0x6b8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x6b8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3c50], eax
cmp dword [ebp - 0x3c50], 0
jne 0x479d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x479db9
mov dword [ebp - 0x3c4c], 0
push 0
lea eax, [ebp - 0x3c3c]
push eax
mov ecx, dword [ebp - 0x3c50]
sub ecx, dword [ebp - 0x3c4c]
push ecx
mov edx, dword [ebp - 0x3c4c]
lea eax, [ebp + edx - 0x1410]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x479d79
mov edx, dword [ebp - 0x3c4c]
add edx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c4c], edx
jmp 0x479d87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x479d95
mov eax, dword [ebp - 0x3c50]
cmp eax, dword [ebp - 0x3c4c]
jg 0x479d1d
mov ecx, dword [ebp - 0x3c50]
cmp ecx, dword [ebp - 0x3c4c]
jle 0x479da5
jmp 0x479db9
mov edx, dword [ebp - 0x3c44]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c1c], edx
jmp 0x479bfe
jmp 0x479e14
push 0
lea eax, [ebp - 0x3c3c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x510c88]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x479e08
mov dword [ebp - 0x3c24], 0
mov ecx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c1c], ecx
jmp 0x479e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
cmp dword [ebp - 0x3c1c], 0
jne 0x479eb1
cmp dword [ebp - 0x3c24], 0
je 0x479e63
cmp dword [ebp - 0x3c24], 5
jne 0x479e4d
call fcn.0047f1f0
mov dword [eax], 9
call fcn.0047f190
mov edx, dword [ebp - 0x3c24]
mov dword [eax], edx
jmp 0x479e5c
mov eax, dword [ebp - 0x3c24]
push eax
call fcn.0047f1c0
add esp, 4
or eax, 0xffffffff
jmp 0x479ebd
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x510c88]
movsx ecx, byte [eax + edx + 4]
and ecx, 0x40
je 0x479e94
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x1a
jne 0x479e94
xor eax, eax
jmp 0x479ebd
call fcn.0047f1f0
mov dword [eax], 0x1c
call fcn.0047f190
mov dword [eax], 0
or eax, 0xffffffff
jmp 0x479ebd
mov eax, dword [ebp - 0x3c1c]
sub eax, dword [ebp - 0x3c30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00494200
mov esp, ebp
pop ebp
ret