Function at 0x402abe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x420], esi
cmp ebx, esi
je 0x402b36
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 8]
inc eax
push ecx
mov dword [ebp - 8], eax
call fcn.004015b8
pop ecx
test eax, eax
js 0x402b36
mov edi, dword [ebp - 8]
cmp edi, 0x400
jg 0x402b1b
push edi
call fcn.004015e8
pop ecx
test al, al
je 0x402b1b
mov eax, edi
call fcn.0042a5c0
mov eax, esp
jmp 0x402b27
mov eax, edi
lea esi, [ebp - 4]
call fcn.004071cb
xor esi, esi
push 3
push edi
push ebx
mov edi, eax
call fcn.004016fc
cmp eax, esi
jne 0x402b71
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x402b4f
lea eax, [ebp - 0x420]
call fcn.00408e01
cmp dword [ebp - 4], esi
je 0x402b67
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push eax
mov dword [ebp - 4], esi
call fcn.004122f0
pop ecx
test esi, esi
jne 0x402b54
mov eax, 0x8007000e
jmp 0x402ce6
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
jne 0x402bb7
push ebx
push str.Failed_to_LoadLibrary_on__s_n
push esi
push dword [0xf5c984]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 8], 0x1ce
call fcn.004017c1
add esp, 0x14
call fcn.00401961
mov esi, eax
jmp 0x402cb2
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402c12
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
mov eax, str.Failed_to_FindResource_on_ID:_d_TYPE:_s_n
je 0x402bdf
mov eax, str.Failed_to_FindResource_on_ID:_s_TYPE:_s_n
push dword [ebp + 0xc]
mov dword [ebp - 0x14], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
push dword [ebp + 8]
mov dword [ebp - 0x10], 0x1d7
push eax
push 0
push dword [0xf5c984]
lea eax, [ebp - 0x14]
push eax
call fcn.004017c1
add esp, 0x18
call fcn.00401961
jmp 0x402ca7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x402c48
push str.Failed_to_LoadResource_n
push eax
push dword [0xf5c984]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x10], 0x1e2
call fcn.004017c1
add esp, 0x10
jmp 0x402c08
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x402c60
mov esi, 0x8007000e
jmp 0x402ca9
push eax
lea esi, [ebp - 0x420]
call fcn.004073f9
cmp dword [ebp - 0x420], 0
je 0x402c59
push edi
push ebx
push edi
push dword [ebp - 0x420]
call fcn.00415970
push eax
call fcn.00401895
mov eax, dword [ebp - 0x420]
add esp, 0x14
push dword [ebp + 0x10]
mov byte [eax + edi], 0
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00403beb
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x402ccb
lea eax, [ebp - 0x420]
call fcn.00408e01
cmp dword [ebp - 4], 0
je 0x402ce4
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.004122f0
pop ecx
test edi, edi
jne 0x402cd1
mov eax, esi
lea esp, [ebp - 0x42c]
pop edi
pop esi
pop ebx
leave
ret 0xc