Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40424b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x664
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x30], ebp
lea esi, [esp + 0x274]
mov edi, 0x100
push 0x100
call sub.mfc42.dll_operatornew
mov dword [esi], eax
add esp, 4
add esi, 4
dec edi
jne 0x401741
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CString::CString
lea esi, [ebp + 0x1a8]
push 0x407310
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x688], 0
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 1
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
lea edi, [ebp + 0x60]
push eax
mov ecx, edi
mov dword [esp + 0x28], edi
call sub.mfc42.dll_CWnd::SetWindowTextA
lea ecx, [esp + 0x274]
push ecx
push 0x405380
mov ecx, ebp
call fcn.004038f0
mov ebx, eax
test ebx, ebx
jle 0x401fe3
push 0x4072f0
lea edx, [esp + 0x14]
push esi
push edx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 2
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, edi
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
cmp ebx, 1
jle 0x401841
push 0x4072a8
lea eax, [esp + 0x14]
push esi
push eax
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 4
call sub.mfc42.dll_CString::operator_1
mov byte [esp + 0x67c], 0
lea ecx, [esp + 0x10]
jmp 0x40200f
mov ecx, dword [esp + 0x274]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x274]
mov dword [esp + 0x10], 0x100
mov eax, dword [ebx]
push eax
call sub.mfc42.dll_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x401871
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
jne 0x4018da
push 0x407284
lea edx, [esp + 0x14]
push esi
push edx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 5
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, edi
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40201e
lea eax, [esp + 0x48]
push 0
push eax
lea ecx, [esp + 0x54]
push 8
push ecx
push 0
push 0
push 0x222a90
push ebx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x401943
push 0x40725c
lea edx, [esp + 0x14]
push esi
push edx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 6
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, edi
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40201e
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
and ebx, 0xffffff
add ebx, 0xc5c10
push ebx
push ebx
push str._ld___08X_r_n......
push eax
call sub.mfc42.dll_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
push 0x407224
push esi
push ecx
call sub.mfc42.dll_operator_1
lea edx, [esp + 0x14]
mov byte [esp + 0x67c], 7
push edx
push eax
lea eax, [esp + 0x18]
push eax
call sub.mfc42.dll_operator
push eax
mov ecx, esi
mov byte [esp + 0x680], 8
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 7
call fcn.00403ad6
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, edi
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.msvcrt.dll_time]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x18
shr edx, 8
mov byte [esp + 0x5f], cl
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x5d], dl
mov eax, ebx
mov edx, ecx
mov byte [esp + 0x60], cl
shr eax, 0x10
sar edx, 8
mov byte [esp + 0x5e], al
mov byte [esp + 0x61], dl
mov eax, ecx
mov edx, ecx
sar eax, 0x10
shr edx, 0x18
add ecx, 0x646c6f47
mov byte [esp + 0x62], al
mov byte [esp + 0x63], dl
mov eax, ecx
mov edx, ecx
xor eax, 0xc0
xor edx, 0x40
and eax, 0xffff
and edx, 0xffff
mov byte [esp + 0x64], al
add esp, 4
mov byte [esp + 0x62], dl
sar eax, 8
sar edx, 8
mov byte [esp + 0x54], 0x4d
mov byte [esp + 0x55], 0x48
mov byte [esp + 0x56], 0xd
mov byte [esp + 0x57], 0
mov byte [esp + 0x58], bl
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x61], al
mov byte [esp + 0x63], dl
mov eax, dword [ebp + 0xa0]
push 0
xor eax, ecx
mov byte [esp + 0x168], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
shr ecx, 8
mov byte [esp + 0x16b], al
lea eax, [esp + 0x4c]
mov byte [esp + 0x169], cl
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x174]
shr edx, 0x10
mov byte [esp + 0x16e], dl
push 0x107
push ecx
lea edx, [esp + 0x64]
push 0x115
push edx
push 0x222a94
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x401b14
push 0x4071f8
lea ecx, [esp + 0x1c]
push esi
push ecx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 9
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, edi
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40201e
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x16f]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
je 0x401bbf
push eax
lea edx, [esp + 0x18]
push str._ld_r_n......
push edx
call sub.mfc42.dll_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
push 0x4071bc
push esi
push eax
call sub.mfc42.dll_operator_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov bl, 0xa
push eax
push edx
mov byte [esp + 0x688], bl
call sub.mfc42.dll_operator
push eax
mov ecx, esi
mov byte [esp + 0x680], 0xb
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], bl
call fcn.00403ad6
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, edi
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40201e
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
xor edi, edi
mov eax, edi
and eax, 0x80000003
jns 0x401bde
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
ja case.default.0x401be3
jmp dword [eax*4 + 0x402050]
mov dl, byte [esp + edi + 0x173]
xor dl, cl
jmp 0x401c11
mov eax, ecx
sar eax, 8
jmp 0x401c08
mov eax, ecx
sar eax, 0x10
jmp 0x401c08
mov eax, ecx
shr eax, 0x18
mov dl, byte [esp + edi + 0x173]
xor dl, al
mov byte [edi + ebp + 0xa8], dl
inc edi
cmp edi, 0x40
jl 0x401bd0
push 0x407190
lea eax, [esp + 0x1c]
push esi
push eax
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 0xc
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
push ebx
lea ecx, [esp + 0x18]
push str._ldKey.Ini
push ecx
call sub.mfc42.dll_CString::Format
mov edx, dword [esp + 0x20]
push 0x407180
push edx
call dword [sym.imp.msvcrt.dll_fopen]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401ccb
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
lea eax, [esp + 0x18]
push 0x40715c
push esi
push eax
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 0xd
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
push edi
push 0x40
lea ecx, [ebp + 0xa8]
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
push ebx
lea edx, [esp + 0x2c]
push 0x407134
push edx
call sub.mfc42.dll_CString::Format
add esp, 0x20
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
call sub.mfc42.dll_operator
push eax
mov ecx, esi
mov byte [esp + 0x680], 0xe
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
lea eax, [ebp + 0xb8]
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 2
mov edx, 4
movzx di, byte [eax + 1]
movzx bp, byte [eax]
shl edi, 8
add edi, ebp
add eax, 2
mov word [ecx], di
add ecx, 2
dec edx
jne 0x401d4f
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x401d4a
push ebx
lea edx, [esp + 0x18]
push str._ld.dog
push edx
call sub.mfc42.dll_CString::Format
mov eax, dword [esp + 0x20]
push 0x407128
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401de4
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
push 0x407108
push esi
push ecx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 0xf
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call sub.mfc42.dll_CWnd::SetWindowTextA
mov ebp, dword [sym.imp.msvcrt.dll_fprintf]
push ebx
push str.Serial_Number_is:__ld_n
push edi
call ebp
mov eax, dword [esp + 0x40]
and eax, 0xffff
mov dword [esp + 0x2c], eax
xor eax, 0x7645
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x4e]
and eax, 0xffff
mov dword [esp + 0x34], eax
xor eax, 0xa932
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x5c]
and eax, 0xffff
mov dword [esp + 0x34], eax
xor eax, 0xc547
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x6a]
and eax, 0xffff
mov dword [esp + 0x48], eax
xor eax, 0xb832
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
xor eax, edx
mov edx, dword [esp + 0x5c]
xor eax, ecx
xor eax, edx
xor eax, 0xa202
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x84]
add esp, 0x48
and eax, 0xffff
mov dword [esp + 0x1c], eax
xor eax, 0x9356
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x4a]
and eax, 0xffff
mov dword [esp + 0x1c], eax
xor eax, 0xe28a
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x58]
and eax, 0xffff
mov dword [esp + 0x30], eax
xor eax, 0x8934
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x66]
and eax, 0xffff
mov dword [esp + 0x44], eax
xor eax, 0x74ca
push eax
push str._04X_
push edi
call ebp
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
xor eax, ecx
mov ecx, dword [esp + 0x4c]
xor eax, edx
xor eax, ecx
xor eax, 0x8c22
push eax
push str._04X
push edi
call ebp
push edi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x40
lea edx, [esp + 0x14]
push ebx
push 0x4070c0
push edx
call sub.mfc42.dll_CString::Format
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push esi
push ecx
call sub.mfc42.dll_operator
push eax
mov ecx, esi
mov byte [esp + 0x680], 0x10
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x67c], 0
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, dword [esp + 0x24]
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
mov eax, dword [esp + 0x30]
xor edx, edx
mov dword [0x40759c], ebx
xor ecx, ecx
mov dl, byte [eax + 0xd7]
mov cl, byte [eax + 0xd6]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0xd5]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0xd4]
shl edx, 8
add edx, ecx
xor eax, eax
mov dword [0x4075a0], edx
mov edx, dword [esp + 0x28]
inc eax
cmp eax, 0x10
mov cl, byte [edx + eax - 1]
mov byte [eax + 0x4075a3], cl
jl 0x401fb4
lea ecx, [esp + 0x14]
mov dword [esp + 0x67c], 0xffffffff
call fcn.00403ad6
mov eax, 1
jmp 0x402034
push 0x407078
lea edx, [esp + 0x2c]
push esi
push edx
call sub.mfc42.dll_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x680], 3
call sub.mfc42.dll_CString::operator_1
mov byte [esp + 0x67c], 0
lea ecx, [esp + 0x28]
call fcn.00403ad6
mov esi, dword [esi]
mov ecx, edi
push esi
call sub.mfc42.dll_CWnd::SetWindowTextA
lea ecx, [esp + 0x14]
mov dword [esp + 0x67c], 0xffffffff
call fcn.00403ad6
xor eax, eax
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x670
ret