Function at 0x402b30
Capabilities:
Delete file
Open clipboard
Read file on windows
Write clipboard data
Write file on windows

Disassembly:
sub esp, 0x7cc
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x7c8], eax
mov edx, dword [esp + 0x7d4]
push ebx
push ebp
mov ebp, dword [esp + 0x7e4]
push esi
mov esi, dword [esp + 0x7e4]
push edi
mov edi, dword [esp + 0x7e0]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
cmp edx, 0x102
jne 0x402d0b
cmp si, 0x1b
jne 0x402b92
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x402ed2
cmp si, 3
jne case.default.0x4035bf
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402d04
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x41a614]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push eax
call ebp
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x402cfe
or esi, 0xffffffff
xor edi, edi
cmp eax, ebx
jle 0x402c44
mov dword [esp + 0x14], eax
mov ecx, dword [0x41a614]
push 2
push esi
push 0x100c
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x402c3d
mov ecx, dword [0x41a614]
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102d
lea edx, [esp + 0x5e4]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], 0x1fe
mov dword [esp + 0x40], edx
call ebp
lea eax, [esp + 0x5d8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c30
sub eax, edx
lea edi, [edi + eax + 4]
sub dword [esp + 0x14], 1
jne 0x402be1
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x402cfe
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
or esi, 0xffffffff
cmp dword [esp + 0x10], edi
mov ebx, eax
jle 0x402cea
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
lea ebx, [ebx]
mov ecx, dword [0x41a614]
push 2
push esi
push 0x100c
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x402ce3
mov ecx, dword [0x41a614]
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102d
lea edx, [esp + 0x5e4]
push ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0x1fe
mov dword [esp + 0x40], edx
call ebp
lea edx, [esp + 0x5d8]
push edx
lea eax, [ebx + edi]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
sub dword [esp + 0x10], 1
jne 0x402c80
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x402ed2
cmp edx, 0x112
jne 0x402db6
mov ecx, 0x1f7
cmp si, cx
jne 0x402d8a
mov eax, dword [0x41a618]
xor edx, edx
cmp dword [0x41b904], edx
push 0
sete dl
push eax
mov dword [0x41b904], edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ecx, dword [0x41b904]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0x1f7
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
cmp dword [0x41b904], 0
mov eax, 0x415950
jne 0x402d6d
mov eax, 0x41594c
push 0x41ba40
push eax
push str.UpdateDB
push str.QuickSFV
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
jmp 0x402ed2
mov eax, 0x1f8
cmp si, ax
jne case.default.0x4035bf
mov ecx, dword [0x41b488]
push 0
push 0x4027c0
push edi
push 0x67
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
jmp 0x402ed2
mov ebx, 2
cmp edx, ebx
jne 0x402eed
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [eax + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp + 0xa4]
push eax
push edi
mov dword [esp + 0xac], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x402ec1
push 0x2c
lea ecx, [esp + 0x5dc]
push ecx
lea edx, [esp + 0xac]
push edx
call section..text
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x41ba40
mov byte [esp + eax + 0x5dc], 0
lea eax, [esp + 0x5dc]
push eax
push str.WindowInfo
push str.QuickSFV
call ebx
xor esi, esi
cmp dword [str.Name], esi
je 0x402e71
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x419024
mov edi, edi
mov ecx, dword [0x41a614]
push 0
push esi
push 0x101d
push ecx
call ebp
mov dword [esi*4 + 0x423ca4], eax
add edi, 0x2c
inc esi
cmp dword [edi], 0
jne 0x402e50
lea edx, [esi*4 + 4]
push edx
lea eax, [esp + 0x5dc]
push eax
push 0x423ca0
mov dword [0x423ca0], esi
call section..text
push 0x41ba40
lea ecx, [esp + 0x5dc]
push ecx
push str.LVWindowInfo
push str.QuickSFV
mov byte [esp + eax + 0x5e8], 0
call ebx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x7e8]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x7e4]
push ebp
push esi
push edx
push edi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [esp + 0x7d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408b84
add esp, 0x7cc
ret 0x10
cmp edx, 5
jne 0x402f17
test esi, esi
jne case.default.0x4035bf
mov ecx, dword [0x41a614]
push 1
mov edx, ebp
shr edx, 0x10
sub edx, 0x20
push edx
movzx eax, bp
push eax
push 0x20
push esi
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x402ec1
cmp edx, 0xf
jne 0x403144
push 0xffffffffffffffeb
mov esi, edi
push esi
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x148]
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
cmp dword [0x41b480], ebp
je 0x402f9d
push 7
call edi
mov ecx, dword [esp + 0x148]
push eax
push ecx
call esi
mov edx, dword [esp + 0x148]
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x148]
push ebp
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov ebp, 1
push 0x11
call edi
mov edx, dword [esp + 0x148]
push eax
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
call esi
push eax
mov eax, dword [esp + 0x14c]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf
call esi
mov ecx, dword [esp + 0x148]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x148]
push ebx
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [0x41b7d0]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0xffffffff
je 0x403012
push eax
mov eax, dword [0x41ba28]
push eax
lea ecx, [esp + 0x5e0]
push str.Completed_Files:__u__u
push ecx
call edi
add esp, 0x10
jmp 0x40302b
mov edx, dword [0x41ba28]
push edx
lea eax, [esp + 0x5dc]
push str.Completed_Files:__u___
push eax
call edi
add esp, 0xc
cmp dword [0x41ba24], 0
mov esi, eax
je 0x403055
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x214]
push edx
lea eax, [esp + esi + 0x5dc]
push str.__File:_u___
push eax
call edi
add esp, 0xc
add esi, eax
mov edx, dword [esp + 0x148]
push esi
mov esi, dword [sym.imp.GDI32.dll_TextOutA]
lea ecx, [esp + 0x5dc]
push ecx
push ebp
push 0
push edx
call esi
mov eax, dword [0x41ba28]
sub eax, dword [0x41b7d8]
lea ecx, [esp + 0x5d8]
sub eax, dword [0x41b26c]
sub eax, dword [0x41b7cc]
push eax
push str.Ok:__u
push ecx
call edi
add esp, 0xc
push eax
mov eax, dword [esp + 0x14c]
lea edx, [esp + 0x5dc]
push edx
lea ebx, [ebp + 0x10]
push ebx
push 0
push eax
call esi
mov ecx, dword [0x41b7cc]
mov edx, dword [0x41b7d8]
add edx, ecx
push edx
lea eax, [esp + 0x5dc]
push str.Bad:__u
push eax
call edi
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x5dc]
push ecx
push ebp
sar edx, 1
push edx
push eax
call esi
mov ecx, dword [0x41b26c]
push ecx
lea edx, [esp + 0x5dc]
push str.Missing:__u
push edx
call edi
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x154]
add esp, 0xc
push eax
lea eax, [esp + 0x5dc]
push eax
push ebx
sar ecx, 1
push ecx
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x148]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x402eb2
cmp edx, 0x4e
jne 0x403584
mov ecx, dword [0x41a614]
cmp dword [ebp], ecx
jne case.default.0x4035bf
cmp dword [ebp + 8], 0xffffff94
jne case.default.0x4035bf
cmp dword [0x423b60], 0
jne 0x40317c
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x402ec1
cmp dword [0x423cc8], 0
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40321f
mov eax, dword [0x423ccc]
mov esi, dword [esp + 0x14]
cmp eax, dword [esi + 0x10]
jne 0x4031c7
mov eax, 1
mov ebx, eax
cmp dword [0x423c9c], eax
jne 0x4031bb
mov dword [0x423c9c], 0xffffffff
jmp 0x40323d
mov dword [0x423cc8], 0
jmp 0x403238
cmp dword [0x41a60c], 0
mov ebx, 1
je 0x40320f
lea edx, [esp + 0x1c]
push edx
push eax
push 0x1019
push ecx
mov dword [esp + 0x2c], ebx
call ebp
mov ecx, dword [0x423ccc]
mov edx, dword [0x41a614]
and dword [esp + 0x20], 0xfffff7ff
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x101a
push edx
call ebp
mov ecx, dword [0x41a614]
mov eax, dword [esi + 0x10]
mov dword [0x423ccc], eax
mov dword [0x423c9c], ebx
jmp 0x40323d
mov edx, dword [esp + 0x14]
mov eax, 1
mov dword [0x423cc8], eax
mov edx, dword [edx + 0x10]
mov dword [0x423ccc], edx
mov ebx, eax
mov dword [0x423c9c], eax
push 0
push 0
push 0x1027
push ecx
call ebp
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x41a614]
push 0x1009
push eax
call ebp
mov ecx, dword [0x41a614]
push 0
push 0
push 0xb
push ecx
call ebp
cmp dword [0x423cc8], 0
je 0x403348
mov eax, dword [0x423ccc]
xor edx, edx
cmp dword [0x423c9c], edx
setle dl
dec edx
and edx, 0x7fffffff
mov dword [0x41a608], edx
test eax, eax
jne 0x4032af
mov eax, dword [0x41a614]
mov ecx, dword [0x41a620]
push eax
push 0x402a40
push ecx
jmp 0x4032da
cmp eax, ebx
jne 0x4032c7
mov edx, dword [0x41a614]
mov eax, dword [0x41a628]
push edx
push 0x402a40
push eax
jmp 0x4032da
mov ecx, dword [0x41a614]
mov edx, dword [0x41a624]
push ecx
push 0x402a40
push edx
call fcn.00408140
cmp dword [0x41a60c], 0
je 0x40351b
mov ecx, dword [0x423ccc]
mov edx, dword [0x41a614]
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x1019
push edx
mov dword [esp + 0x2c], ebx
call ebp
or dword [esp + 0x20], 0x1800
mov edx, dword [0x423ccc]
xor eax, eax
cmp dword [0x423c9c], ebx
lea ecx, [esp + 0x1c]
setne al
push ecx
push edx
push 0x101a
mov dword [esp + 0x28], 0x11
add eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [0x41a614]
push eax
jmp 0x403519
mov esi, dword [0x41a61c]
test esi, esi
je 0x4034d2
push 0x3c
xor edi, edi
lea ecx, [esp + 0x5c]
push edi
push ecx
call fcn.004094e0
mov dword [esp + 0x6c], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x64], 7
mov dword [esp + 0x68], 0x7fffffff
mov edx, dword [esi + 0x10]
mov eax, ecx
mov dword [esp + 0x84], edi
add esp, 0xc
mov dword [esp + 0x74], edx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403392
sub eax, edi
lea edi, [eax + 1]
mov dword [esp + 0x6c], ecx
movsx eax, byte [ecx]
push eax
call fcn.004091d5
add esp, 4
test eax, eax
je 0x4033ce
mov eax, dword [esp + 0x6c]
add eax, ebx
mov dword [esp + 0x6c], eax
movsx ecx, byte [eax]
push ecx
sub edi, ebx
call fcn.004091d5
add esp, 4
test eax, eax
jne 0x4033b2
mov eax, dword [0x41a614]
lea edx, [esp + 0x58]
push edx
push 0
push 0x1007
push eax
mov dword [esp + 0x80], edi
call ebp
add dword [esp + 0x60], ebx
lea ecx, [esi + 0x294]
mov dword [esp + 0x5c], eax
mov eax, ecx
mov dword [esp + 0x58], ebx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403400
mov dword [esp + 0x6c], ecx
movsx ecx, byte [ecx]
sub eax, edi
push ecx
lea edi, [eax + 1]
call fcn.004091d5
add esp, 4
test eax, eax
je 0x40343c
mov eax, dword [esp + 0x6c]
add eax, ebx
mov dword [esp + 0x6c], eax
movsx edx, byte [eax]
push edx
sub edi, ebx
call fcn.004091d5
add esp, 4
test eax, eax
jne 0x403420
mov ecx, dword [0x41a614]
lea eax, [esp + 0x58]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x80], edi
call ebp
add dword [esp + 0x60], ebx
lea ecx, [esi + 0x214]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403467
mov dword [esp + 0x6c], ecx
movsx edx, byte [ecx]
sub eax, edi
push edx
lea edi, [eax + 1]
call fcn.004091d5
add esp, 4
test eax, eax
je 0x4034ac
jmp 0x403490
mov eax, dword [esp + 0x6c]
add eax, ebx
mov dword [esp + 0x6c], eax
movsx eax, byte [eax]
push eax
sub edi, ebx
call fcn.004091d5
add esp, 4
test eax, eax
jne 0x403490
mov edx, dword [0x41a614]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x80], edi
call ebp
mov esi, dword [esi]
test esi, esi
jne 0x403356
cmp dword [0x41a60c], 0
je 0x40351b
mov ecx, dword [0x423ccc]
mov edx, dword [0x41a614]
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x1019
push edx
mov dword [esp + 0x2c], ebx
call ebp
mov ecx, dword [0x423ccc]
mov edx, dword [0x41a614]
and dword [esp + 0x20], 0xfffff7ff
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x101a
push edx
call ebp
mov eax, dword [0x41a614]
push 0
push ebx
push 0xb
push eax
call ebp
mov edx, dword [0x41a614]
lea ecx, [esp + 0x94]
push ecx
push 0
push 0x100e
push edx
mov dword [esp + 0xa4], 0
call ebp
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
mov ecx, dword [0x41a614]
imul eax, dword [esp + 0x18]
push eax
push 0
push 0x1014
push ecx
call ebp
mov edx, dword [0x41a614]
push ebx
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x402eb2
cmp edx, 0x111
jne case.default.0x4035bf
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x403b9f
movzx eax, si
cmp eax, 0x9c41
jg 0x403b36
je 0x403b25
sub eax, 0x2bd
cmp eax, 6
ja case.default.0x4035bf
jmp dword [eax*4 + 0x403c0c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov edi, 0x41b800
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0x50
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x402d83
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403637
sub eax, edx
cmp byte [eax + 0x41b7ff], 0x5c
je 0x403661
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403650
mov ax, word [0x415854]
mov word [edi], ax
mov dword [0x41b6a0], 1
xor eax, eax
jmp 0x402ed2
mov eax, 1
mov dword [0x41b7c8], eax
mov dword [0x41b7c4], eax
xor eax, eax
jmp 0x402ed2
mov ecx, dword [0x41a614]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x1004
push ecx
call edi
cmp eax, ebp
mov dword [esp + 0x10], eax
jle 0x40378f
xor esi, esi
cmp eax, ebp
jle 0x40378f
mov eax, dword [0x41a614]
lea edx, [esp + 0x58]
push edx
push ebp
push 0x1005
push eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x68], ebx
call edi
mov eax, dword [0x41a614]
cmp dword [esp + 0x74], ebx
jne 0x403765
lea edx, [esp + 0x1c]
push edx
push esi
push 0x102d
lea ecx, [esp + 0x5e4]
push eax
mov byte [esp + 0x5e8], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], 0x1fe
mov dword [esp + 0x40], ecx
call edi
cmp byte [esp + 0x5d8], 0
je 0x403740
mov edx, dword [0x41a614]
lea ecx, [esp + 0xd0]
push ecx
push esi
push 0x102b
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], ebx
push edx
jmp 0x403782
mov ecx, dword [0x41a614]
lea eax, [esp + 0x10c]
push eax
push esi
push 0x102b
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ebp
push ecx
jmp 0x403782
lea edx, [esp + 0x148]
push edx
push esi
push 0x102b
mov dword [esp + 0x164], ebx
mov dword [esp + 0x160], ebp
push eax
call edi
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4036b6
mov ecx, dword [0x41a614]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
jmp 0x402ed2
mov edx, dword [0x41a618]
push 0
push 3
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x402ed2
mov eax, dword [0x41a614]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x1032
push eax
call edi
cmp eax, ebp
jle 0x402d83
or esi, 0xffffffff
cmp eax, ebp
jle 0x402d83
mov dword [esp + 0x10], eax
mov edi, edi
mov ecx, dword [0x41a614]
push ebx
push esi
push 0x100c
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40386c
mov ecx, dword [0x41a614]
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102d
lea edx, [esp + 0x5e4]
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], 0x1fe
mov dword [esp + 0x40], edx
call edi
mov eax, dword [0x41a614]
lea edx, [esp + 0x58]
push edx
push ebp
push 0x1005
push eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x68], ebx
call edi
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x40385e
cmp eax, 1
jne 0x40386c
lea ecx, [esp + 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub dword [esp + 0x10], 1
jne 0x4037f0
xor eax, eax
jmp 0x402ed2
cmp dword [0x41b7d4], 0
je 0x403960
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push 0x41b920
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403991
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call ebp
push 0x200
lea edx, [esp + 0x5dc]
push edx
push esi
mov edi, eax
call fcn.00404770
test eax, eax
jle 0x403b0c
mov bl, 0x2d
cmp byte [esp + 0x5d8], 0x3b
jne 0x403913
cmp byte [esp + 0x5d9], 0x51
jne 0x403913
movsx eax, byte [esp + 0x5da]
push eax
call fcn.00409156
add esp, 4
test eax, eax
je 0x403913
cmp byte [esp + 0x5db], bl
je 0x403943
push 1
push 0
push 0
push esi
call ebp
push 0x200
lea ecx, [esp + 0x5dc]
push ecx
push esi
mov edi, eax
call fcn.00404770
test eax, eax
jg 0x4038e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402ed2
push 0
push 0
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402ed2
cmp dword [0x41ba30], 0
je 0x402d83
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push 0x41b920
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4039ab
push 0x30
push str.Notice
push str.Could_not_update_DB
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402ed2
mov edx, dword [0x423bc4]
mov eax, dword [0x423bc0]
push edx
push eax
push esi
call fcn.004054c0
push esi
call fcn.00405490
lea ecx, [esp + 0x1a0]
push ecx
push 0
mov ebp, edx
push 0x200
lea edx, [esp + 0x5e4]
push edx
push esi
mov edi, eax
call fcn.00405280
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jle 0x403a63
jmp 0x403a00
mov eax, dword [esp + 0x1ac]
and dword [esp + 0x1a8], 0xfffffffd
push ebp
push edi
push esi
mov dword [esp + 0x1b8], eax
call fcn.004054c0
mov edx, dword [esp + 0x1a0]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x1ac]
push eax
push esi
call ebx
push esi
call fcn.00405490
lea ecx, [esp + 0x1a0]
push ecx
push 0
mov ebp, edx
push 0x200
lea edx, [esp + 0x5e4]
push edx
push esi
mov edi, eax
call fcn.00405280
test eax, eax
jg 0x403a00
push 0
push 0x20
push esi
call fcn.004054c0
lea eax, [esp + 0x148]
push eax
call fcn.00413100
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x5e4]
push edx
push esi
call edi
test eax, eax
je 0x403adc
mov edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403adc
push eax
lea eax, [esp + 0x5dc]
push eax
lea ecx, [esp + 0x150]
push ecx
call fcn.00413130
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x5e4]
push eax
push esi
call edi
test eax, eax
jne 0x403aa0
lea ecx, [esp + 0x148]
push ecx
push 0x423b90
call fcn.004131d0
add esp, 8
push 0
push 0x10
push esi
call fcn.004054c0
push 0
lea edx, [esp + 0x14]
push edx
push 0x10
push 0x423b90
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402ed2
push edi
call fcn.00402500
jmp 0x402ed2
mov dword [0x41b6a0], 1
xor eax, eax
jmp 0x402ed2
sub eax, 0x9c42
je 0x402b7e
sub eax, 1
je 0x403b82
sub eax, 1
jne case.default.0x4035bf
cmp dword [0x41b904], eax
mov ecx, dword [0x41a618]
sete al
push ecx
mov dword [0x41b904], eax
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [0x41b904]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0x9c44
jmp 0x402d53
mov eax, dword [0x41b488]
push 0
push 0x4027c0
push edi
push 0x67
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
jmp 0x402ed2
mov ecx, 0x9c44
cmp si, cx
jne 0x403bde
mov eax, dword [0x41a618]
xor edx, edx
cmp dword [0x41b904], edx
push eax
sete dl
mov dword [0x41b904], edx
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [0x41b904]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0x9c44
jmp 0x402d53
mov eax, 0x9c43
cmp si, ax
jne case.default.0x4035bf
mov ecx, dword [0x41b488]
push 0
push 0x4027c0
push edi
push 0x67
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
jmp 0x402ed2