Function at 0x431d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3c94
call fcn.00414ef0
mov eax, dword [0x459418]
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 0x431d7e
xor eax, eax
jmp 0x432aad
cmp dword [ebp + 0xc], 0
je 0x431d90
mov dword [ebp - 0x3c84], 1
jmp 0x431d9a
mov dword [ebp - 0x3c84], 0
mov ecx, dword [ebp - 0x3c84]
mov dword [ebp - 0x3c78], ecx
cmp dword [ebp - 0x3c78], 0
jne 0x431dd2
push str._buf___NULL_
push 0x44764c
push 0
push 0x6c
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00406f20
add esp, 0x18
cmp eax, 1
jne 0x431dd2
int3
cmp dword [ebp - 0x3c78], 0
jne 0x431e14
call fcn.00412030
mov dword [eax], 0
call fcn.00412090
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.004124b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x432aad
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x45aba0]
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 0x431e54
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
jne 0x431eec
mov eax, dword [ebp + 0x10]
and eax, 1
jne 0x431e68
mov dword [ebp - 0x3c80], 1
jmp 0x431e72
mov dword [ebp - 0x3c80], 0
mov ecx, dword [ebp - 0x3c80]
mov dword [ebp - 0x3c88], ecx
cmp dword [ebp - 0x3c88], 0
jne 0x431eaa
push str.__cnt__1___0_
push 0x44764c
push 0
push 0x74
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00406f20
add esp, 0x18
cmp eax, 1
jne 0x431eaa
int3
cmp dword [ebp - 0x3c88], 0
jne 0x431eec
call fcn.00412030
mov dword [eax], 0
call fcn.00412090
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.004124b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x432aad
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x45aba0]
movsx eax, byte [edx + ecx + 4]
and eax, 0x20
je 0x431f1e
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00432d30
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.0042c8d0
add esp, 4
test eax, eax
je 0x431fc8
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x45aba0]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x431fc8
call fcn.00408ba0
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 0x431f85
mov dword [ebp - 0x3c7c], 1
jmp 0x431f8f
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 + 0x45aba0]
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 0x4324cd
cmp dword [ebp - 0x3c70], 0
je 0x431fed
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
je 0x4324cd
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 0x4324c8
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x43223b
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x432051
mov dword [ebp - 0x3c74], 1
jmp 0x43205b
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 + 0x45aba0]
cmp dword [ecx + eax + 0x38], 0
je 0x432152
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x45aba0]
movsx edx, byte [ecx + eax + 0x34]
push edx
call fcn.0042d0f0
add esp, 4
test eax, eax
jne 0x4320d6
push str.isleadbyte__dbcsBuffer_fh__
push 0x44764c
push 0
push 0xae
push str.f:dd_vctoolscrt_bld_self_x86crt_srcwrite.c
push 2
call fcn.00406f20
add esp, 0x18
cmp eax, 1
jne 0x4320d6
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 + 0x45aba0]
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 + 0x45aba0]
mov dword [edx + ecx + 0x38], 0
push 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00438d10
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43214d
jmp 0x4324c8
jmp 0x43222a
mov edx, dword [ebp - 0x3c20]
movsx eax, byte [edx]
push eax
call fcn.0042d0f0
add esp, 4
test eax, eax
je 0x432208
mov ecx, dword [ebp - 0x3c20]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub edx, ecx
cmp edx, 1
jbe 0x4321b2
push 2
mov eax, dword [ebp - 0x3c20]
push eax
lea ecx, [ebp - 0x3c18]
push ecx
call fcn.00438d10
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4321a1
jmp 0x4324c8
mov edx, dword [ebp - 0x3c20]
add edx, 1
mov dword [ebp - 0x3c20], edx
jmp 0x432206
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x45aba0]
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 + 0x45aba0]
mov dword [eax + edx + 0x38], 1
mov ecx, dword [ebp - 0x3c1c]
add ecx, 1
mov dword [ebp - 0x3c1c], ecx
jmp 0x4324c8
jmp 0x43222a
push 1
mov edx, dword [ebp - 0x3c20]
push edx
lea eax, [ebp - 0x3c18]
push eax
call fcn.00438d10
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43222a
jmp 0x4324c8
mov ecx, dword [ebp - 0x3c20]
add ecx, 1
mov dword [ebp - 0x3c20], ecx
jmp 0x4322a0
movsx edx, byte [ebp - 0x3c11]
cmp edx, 1
je 0x432253
movsx eax, byte [ebp - 0x3c11]
cmp eax, 2
jne 0x4322a0
mov ecx, dword [ebp - 0x3c20]
mov dx, word [ecx]
mov word [ebp - 0x3c18], dx
movzx eax, word [ebp - 0x3c18]
cmp eax, 0xa
jne 0x43227b
mov dword [ebp - 0x3c68], 1
jmp 0x432285
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 0x4323ff
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 0x4322e7
jmp 0x4324c8
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 + 0x45aba0]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432349
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 0x432347
jmp 0x4324c8
jmp 0x43235a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4324c8
cmp dword [ebp - 0x3c64], 0
je 0x4323fa
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 + 0x45aba0]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4323e9
mov eax, dword [ebp - 0x3c60]
cmp eax, dword [ebp - 0x3c40]
jge 0x4323c9
jmp 0x4324c8
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 0x4323fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4324c8
jmp 0x4324c3
movsx eax, byte [ebp - 0x3c11]
cmp eax, 1
je 0x43241b
movsx ecx, byte [ebp - 0x3c11]
cmp ecx, 2
jne 0x4324c3
movzx edx, word [ebp - 0x3c18]
push edx
call fcn.00443a40
add esp, 4
movzx eax, ax
movzx ecx, word [ebp - 0x3c18]
cmp eax, ecx
jne 0x43244a
mov edx, dword [ebp - 0x3c1c]
add edx, 2
mov dword [ebp - 0x3c1c], edx
jmp 0x432458
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4324c8
cmp dword [ebp - 0x3c64], 0
je 0x4324c3
mov dword [ebp - 0x3c40], 1
mov eax, 0xd
mov word [ebp - 0x3c18], ax
movzx ecx, word [ebp - 0x3c18]
push ecx
call fcn.00443a40
add esp, 4
movzx edx, ax
movzx eax, word [ebp - 0x3c18]
cmp edx, eax
jne 0x4324b5
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 0x4324c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4324c8
jmp 0x432016
jmp 0x432a04
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x45aba0]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x4329ab
mov dword [ebp - 0x3c24], 0
movsx ecx, byte [ebp - 0x3c11]
test ecx, ecx
jne 0x432668
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 0x432663
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 0x4325e1
mov ecx, dword [ebp - 0x3c48]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4325e1
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 0x4325bf
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 0x432547
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 + 0x45aba0]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432650
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 0x43264e
jmp 0x432663
jmp 0x43265e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432663
jmp 0x432529
jmp 0x4329a9
movsx edx, byte [ebp - 0x3c11]
cmp edx, 2
jne 0x4327d2
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 0x4327cd
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 0x43274b
mov edx, dword [ebp - 0x3c54]
sub edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
jae 0x43274b
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 0x432727
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 0x4326a9
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 + 0x45aba0]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4327ba
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 0x4327b8
jmp 0x4327cd
jmp 0x4327c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4327cd
jmp 0x43268b
jmp 0x4329a9
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 0x4329a9
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 0x4328a6
mov ecx, dword [ebp - 0x3c44]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4328a6
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 0x432882
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 0x432816
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 0x432903
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x4329a9
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 + 0x45aba0]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432969
mov edx, dword [ebp - 0x3c4c]
add edx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c4c], edx
jmp 0x432977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
jmp 0x432985
mov eax, dword [ebp - 0x3c50]
cmp eax, dword [ebp - 0x3c4c]
jg 0x43290d
mov ecx, dword [ebp - 0x3c50]
cmp ecx, dword [ebp - 0x3c4c]
jle 0x432995
jmp 0x4329a9
mov edx, dword [ebp - 0x3c44]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c1c], edx
jmp 0x4327ee
jmp 0x432a04
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 + 0x45aba0]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4329f8
mov dword [ebp - 0x3c24], 0
mov ecx, dword [ebp - 0x3c3c]
mov dword [ebp - 0x3c1c], ecx
jmp 0x432a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c24], eax
cmp dword [ebp - 0x3c1c], 0
jne 0x432aa1
cmp dword [ebp - 0x3c24], 0
je 0x432a53
cmp dword [ebp - 0x3c24], 5
jne 0x432a3d
call fcn.00412090
mov dword [eax], 9
call fcn.00412030
mov edx, dword [ebp - 0x3c24]
mov dword [eax], edx
jmp 0x432a4c
mov eax, dword [ebp - 0x3c24]
push eax
call fcn.00412060
add esp, 4
or eax, 0xffffffff
jmp 0x432aad
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x45aba0]
movsx ecx, byte [eax + edx + 4]
and ecx, 0x40
je 0x432a84
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x1a
jne 0x432a84
xor eax, eax
jmp 0x432aad
call fcn.00412090
mov dword [eax], 0x1c
call fcn.00412030
mov dword [eax], 0
or eax, 0xffffffff
jmp 0x432aad
mov eax, dword [ebp - 0x3c1c]
sub eax, dword [ebp - 0x3c30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063c0
mov esp, ebp
pop ebp
ret