Function at 0x431cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3c94
call fcn.00430840
mov eax, dword [0x4953e0]
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 0x431d3e
xor eax, eax
jmp 0x432a6d
cmp dword [ebp + 0xc], 0
je 0x431d50
mov dword [ebp - 0x3c84], 1
jmp 0x431d5a
mov dword [ebp - 0x3c84], 0
mov ecx, dword [ebp - 0x3c84]
mov dword [ebp - 0x3c78], ecx
cmp dword [ebp - 0x3c78], 0
jne 0x431d92
push str._buf___NULL_
push 0x47e94c
push 0
push 0x6c
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x431d92
int3
cmp dword [ebp - 0x3c78], 0
jne 0x431dd4
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
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.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x432a6d
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
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 0x431e14
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
jne 0x431eac
mov eax, dword [ebp + 0x10]
and eax, 1
jne 0x431e28
mov dword [ebp - 0x3c80], 1
jmp 0x431e32
mov dword [ebp - 0x3c80], 0
mov ecx, dword [ebp - 0x3c80]
mov dword [ebp - 0x3c88], ecx
cmp dword [ebp - 0x3c88], 0
jne 0x431e6a
push str.__cnt__1___0_
push 0x47e94c
push 0
push 0x74
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x431e6a
int3
cmp dword [ebp - 0x3c88], 0
jne 0x431eac
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
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.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x432a6d
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x20
je 0x431ede
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439a70
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.00439210
add esp, 4
test eax, eax
je 0x431f88
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x431f88
call fcn.004172d0
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 0x431f45
mov dword [ebp - 0x3c7c], 1
jmp 0x431f4f
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 + 0x497458]
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 0x43248d
cmp dword [ebp - 0x3c70], 0
je 0x431fad
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
je 0x43248d
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 0x432488
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x4321fb
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x432011
mov dword [ebp - 0x3c74], 1
jmp 0x43201b
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 + 0x497458]
cmp dword [ecx + eax + 0x38], 0
je 0x432112
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 0x34]
push edx
call fcn.00423b10
add esp, 4
test eax, eax
jne 0x432096
push str.isleadbyte__dbcsBuffer_fh__
push 0x47e94c
push 0
push 0xae
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x432096
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 + 0x497458]
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 + 0x497458]
mov dword [edx + ecx + 0x38], 0
push 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00444d00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43210d
jmp 0x432488
jmp 0x4321ea
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
push eax
call fcn.00423b10
add esp, 4
test eax, eax
je 0x4321c8
mov ecx, dword [ebp - 0x3c20]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub edx, ecx
cmp edx, 1
jbe 0x432172
push 2
mov eax, dword [ebp - 0x3c20]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00444d00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x432161
jmp 0x432488
mov edx, dword [ebp - 0x3c20]
add edx, 1
mov dword [ebp - 0x3c20], edx
jmp 0x4321c6
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
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 + 0x497458]
mov dword [eax + edx + 0x38], 1
mov ecx, dword [ebp - 0x3c1c]
add ecx, 1
mov dword [ebp - 0x3c1c], ecx
jmp 0x432488
jmp 0x4321ea
push 1
mov edx, dword [ebp - 0x3c20]
push edx
lea eax, [ebp - 0x3c18]
push eax
call fcn.00444d00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4321ea
jmp 0x432488
mov ecx, dword [ebp - 0x3c20]
add ecx, 1
mov dword [ebp - 0x3c20], ecx
jmp 0x432260
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
je 0x432213
movsx eax, byte [ebp - 0x3c11]
cmp eax, 2
jne 0x432260
mov ecx, dword [ebp - 0x3c20]
mov dx, word [ecx]
mov word [ebp - 0x3c18], dx
movzx eax, word [ebp - 0x3c18]
cmp eax, 0xa
jne 0x43223b
mov dword [ebp - 0x3c68], 1
jmp 0x432245
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 0x4323bf
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 0x4322a7
jmp 0x432488
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 + 0x497458]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432309
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 0x432307
jmp 0x432488
jmp 0x43231a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432488
cmp dword [ebp - 0x3c64], 0
je 0x4323ba
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 + 0x497458]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4323a9
mov eax, dword [ebp - 0x3c60]
cmp eax, dword [ebp - 0x3c40]
jge 0x432389
jmp 0x432488
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 0x4323ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432488
jmp 0x432483
movsx eax, byte [ebp - 0x3c11]
cmp eax, 1
je 0x4323db
movsx ecx, byte [ebp - 0x3c11]
cmp ecx, 2
jne 0x432483
movzx edx, word [ebp - 0x3c18]
push edx
call fcn.00445340
add esp, 4
movzx eax, ax
movzx ecx, word [ebp - 0x3c18]
cmp eax, ecx
jne 0x43240a
mov edx, dword [ebp - 0x3c1c]
add edx, 2
mov dword [ebp - 0x3c1c], edx
jmp 0x432418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432488
cmp dword [ebp - 0x3c64], 0
je 0x432483
mov dword [ebp - 0x3c40], 1
mov eax, 0xd
mov word [ebp - 0x3c18], ax
movzx ecx, word [ebp - 0x3c18]
push ecx
call fcn.00445340
add esp, 4
movzx edx, ax
movzx eax, word [ebp - 0x3c18]
cmp edx, eax
jne 0x432475
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 0x432483
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432488
jmp 0x431fd6
jmp 0x4329c4
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x43296b
mov dword [ebp - 0x3c24], 0
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x432628
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 0x432623
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 0x4325a1
mov ecx, dword [ebp - 0x3c48]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4325a1
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 0x43257f
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 0x432507
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 + 0x497458]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432610
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 0x43260e
jmp 0x432623
jmp 0x43261e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432623
jmp 0x4324e9
jmp 0x432969
movsx edx, byte [ebp - 0x3c11]
cmp edx, 2
jne 0x432792
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 0x43278d
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 0x43270b
mov edx, dword [ebp - 0x3c54]
sub edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
jae 0x43270b
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 0x4326e7
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 0x432669
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 + 0x497458]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43277a
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 0x432778
jmp 0x43278d
jmp 0x432788
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x43278d
jmp 0x43264b
jmp 0x432969
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 0x432969
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 0x432866
mov ecx, dword [ebp - 0x3c44]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x432866
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 0x432842
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 0x4327d6
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 0x4328c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432969
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 + 0x497458]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432929
mov edx, dword [ebp - 0x3c4c]
add edx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c4c], edx
jmp 0x432937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432945
mov eax, dword [ebp - 0x3c50]
cmp eax, dword [ebp - 0x3c4c]
jg 0x4328cd
mov ecx, dword [ebp - 0x3c50]
cmp ecx, dword [ebp - 0x3c4c]
jle 0x432955
jmp 0x432969
mov edx, dword [ebp - 0x3c44]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c1c], edx
jmp 0x4327ae
jmp 0x4329c4
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 + 0x497458]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4329b8
mov dword [ebp - 0x3c24], 0
mov ecx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c1c], ecx
jmp 0x4329c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
cmp dword [ebp - 0x3c1c], 0
jne 0x432a61
cmp dword [ebp - 0x3c24], 0
je 0x432a13
cmp dword [ebp - 0x3c24], 5
jne 0x4329fd
call fcn.004166f0
mov dword [eax], 9
call fcn.00416690
mov edx, dword [ebp - 0x3c24]
mov dword [eax], edx
jmp 0x432a0c
mov eax, dword [ebp - 0x3c24]
push eax
call fcn.004166c0
add esp, 4
or eax, 0xffffffff
jmp 0x432a6d
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
movsx ecx, byte [eax + edx + 4]
and ecx, 0x40
je 0x432a44
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x1a
jne 0x432a44
xor eax, eax
jmp 0x432a6d
call fcn.004166f0
mov dword [eax], 0x1c
call fcn.00416690
mov dword [eax], 0
or eax, 0xffffffff
jmp 0x432a6d
mov eax, dword [ebp - 0x3c1c]
sub eax, dword [ebp - 0x3c30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f960
mov esp, ebp
pop ebp
ret