Function at 0x406a10
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
test esi, esi
je 0x406a41
push 0
push 0x106
push esi
call ebx
push str.ck_WL
push 0x107
push esi
call ebx
call fcn.00405650
cmp eax, 2
jne 0x406a56
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406a82
test esi, esi
je 0x406acf
push 0x44
push 0x412ddc
push 0x412de8
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x406a82
mov eax, 6
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x406acf
mov eax, dword [0x416af8]
inc eax
mov ecx, eax
push 0
shl ecx, 4
add ecx, eax
push ecx
push 0x402
push 0x108
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc dword [0x416af8]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x106
push esi
call ebx
push str.ck_WSb
push 0x107
push esi
call ebx
call fcn.00405870
mov dword [ebp - 8], eax
test eax, eax
jne 0x406ae6
mov eax, 2
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 6]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*8]
mov edi, dword [ecx + eax + 0xe4]
add edi, dword [ecx + eax + 0xe0]
lea eax, [ecx + eax + 0xd0]
add edi, dword [ebp - 4]
test esi, esi
je 0x406b73
mov eax, dword [0x416af8]
inc eax
mov edx, eax
push 0
shl edx, 4
add edx, eax
push edx
push 0x402
push 0x108
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc dword [0x416af8]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x106
push esi
call ebx
push 0x412e2c
push 0x107
push esi
call ebx
mov ecx, edi
call fcn.00405a10
test eax, eax
jne 0x406b9d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404ee0
test esi, esi
je 0x406bbf
push 0
push 0x106
push esi
call ebx
push str.ck_W_e
push 0x107
push esi
call ebx
push edi
mov ebx, edi
call fcn.00405c00
add esp, 4
test eax, eax
jne 0x406bed
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00404ee0
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
test esi, esi
je 0x406c29
push 0
push 0x106
push esi
call edi
push str.ck_WeR
push 0x107
push esi
call edi
call fcn.00406170
mov ecx, esi
call fcn.00404ee0
test esi, esi
je 0x406c50
push 0
push 0x106
push esi
call edi
push 0x412e8c
push 0x107
push esi
call edi
call fcn.004062d0
call fcn.00406580
sub esp, 0x74
mov eax, esp
mov dword [ebp - 8], esp
push eax
mov ecx, 0x415c90
call fcn.00403800
call fcn.004014a0
add esp, 0x74
mov ecx, esi
call fcn.00404ee0
test esi, esi
je 0x406c97
push 0
push 0x106
push esi
call edi
push str.ck_W
push 0x107
push esi
call edi
call fcn.00405e00
test eax, eax
jne 0x406cab
mov eax, 5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00406870
mov ecx, esi
call fcn.00404ee0
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret