Function at 0x402060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4038d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str.TEXT_FILE
push 0x83
mov ebp, ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push esi
push 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
mov esi, eax
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov dword [esp + 0x28], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
push 0x407554
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
mov ebx, 1
call fcn.0040338e
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x140], 0
test eax, eax
jbe 0x402201
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push ecx
push ebx
push 0xd
push esi
mov ecx, ebp
call fcn.00402000
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0x2c], edx
je 0x402311
cmp ebx, edx
ja 0x40231c
mov al, dl
mov ecx, 0xc
sub al, bl
lea edi, [esp + 0x30]
mov byte [esp + 0x28], al
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
add esi, ebx
and ecx, 0xff
stosw word es:[edi], ax
mov eax, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x36], 0x30
jne 0x4021f0
mov al, byte [esp + 0x37]
cmp al, 0x30
jne 0x4021ec
mov cl, byte [esp + 0x30]
mov al, byte [esp + 0x31]
shl cl, 4
cmp al, 0x39
ja 0x4021ae
cmp al, 0x30
jb 0x4021ae
sub al, 0x30
jmp 0x4021b0
sub al, 0x37
mov esi, dword [ebp + 0x140]
or cl, al
mov byte [esp + 0x20], cl
mov eax, dword [esp + 0x20]
and eax, 0xff
add esi, eax
cmp cl, 0x10
mov dword [ebp + 0x140], esi
ja 0x4021d6
test cl, cl
jne 0x4021f0
push 0
push 0
push str.Hex_Data_Error_
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esp + 0x2c]
jmp 0x4021f0
cmp al, 0x31
je 0x402201
mov eax, dword [esp + 0x18]
add edx, 3
cmp edx, eax
mov ebx, edx
jb 0x402128
push 0x407554
lea ecx, [esp + 0x14]
call fcn.0040338e
mov ecx, dword [ebp + 0x140]
lea edx, [esp + 0x10]
push ecx
push 0x4061a0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push str._r_nCode_Amount:
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push 0x40618c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
push ecx
push 0x3ed
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push 0x3ed
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x3ed
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push ecx
call esi
push 0x3ed
mov ecx, ebp
mov edi, eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push edi
push 0
push 0xb6
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call fcn.0040328c
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call fcn.0040328c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040328c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push 0
push 0
push str.File_Amount1_Error
jmp 0x402325
push 0
push 0
push str.File_Amount_Error
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call fcn.0040328c
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call fcn.0040328c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040328c
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret