Function at 0x402b4a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
push edi
push str.1024
push str.MYRESOURCE
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402b74
mov al, 0xff
jmp 0x402eab
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x402b8c
mov al, 0xff
jmp 0x402eab
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x402ba2
mov al, 0xff
jmp 0x402eab
cmp dword [ebx], 0x194
je 0x402bb1
mov al, 0xfe
jmp 0x402eab
cmp dword [ebx + 4], 6
je 0x402bbe
mov al, 0xfe
jmp 0x402eab
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x14]
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, 0x40c7b0
mov ecx, 0xa
mov edi, eax
push 0x28
push eax
mov dword [0x40c800], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x44]
call fcn.00401ef4
add esp, 8
lea edi, [ebp - 0x320]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
push pe_nt_image_headers32
lea ecx, [ebp - 0x320]
push ecx
lea esi, [ebx + 0x114]
lea edi, [ebp - 0x19c]
call fcn.00401ef4
add esp, 8
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
push pe_nt_image_headers32
lea ecx, [ebp - 0x19c]
push ecx
call fcn.00401ef4
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x10], 0
jg 0x402c59
mov al, 0xfd
jmp 0x402eab
push 0x104
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea ecx, [ebp - 0x2a0]
push 0x40b134
push ecx
call fcn.00403200
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x402c91
mov al, 0xfc
jmp 0x402eab
push dword [esi + 0x10]
call fcn.00404140
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402ea0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 4], eax
jl 0x402ea0
push 0
xor edi, edi
push eax
push esi
call fcn.004040a0
add esp, 0xc
cmp dword [ebp - 0x10], edi
jle 0x402e14
mov ebx, 1
push esi
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00403a40
add esp, 0x10
cmp eax, ebx
jne 0x402e53
cmp dword [ebp - 8], 0
jle 0x402e93
cmp dword [ebp - 8], 0x104
jg 0x402e93
push esi
lea ecx, [ebp - 0x11c]
push ebx
push dword [ebp - 8]
push ecx
call fcn.00403a40
add esp, 0x10
cmp eax, ebx
jne 0x402e60
push dword [ebp - 8]
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00401ef4
add esp, 8
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x2a0]
lea eax, [ebp - 0x528]
mov byte [ebp + ecx - 0x11c], 0
push 0x5c
lea ecx, [ebp - 0x11c]
push edx
push eax
push ecx
call fcn.004019e2
add esp, 0x10
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x528]
lea edx, [ebp - 0x424]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x2a0]
lea edx, [ebp - 0x424]
push ecx
lea eax, [ebp - 0x11c]
push edx
push 0x40c590
push str._s_s_s
push eax
call fcn.004032f0
add esp, 0x14
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00403770
add esp, 4
lea ecx, [ebp - 0x424]
push ecx
push 0x40c590
call fcn.00402230
add esp, 8
lea ecx, [ebp - 0x18]
push esi
push ebx
push 4
push ecx
call fcn.00403a40
add esp, 0x10
cmp eax, ebx
push esi
jne 0x402e6d
push ebx
lea eax, [ebp - 4]
push 4
push eax
call fcn.00403a40
add esp, 0x10
cmp eax, ebx
jne 0x402e79
cmp dword [ebp - 4], 0
jle 0x402e86
push ebx
inc edi
push dword [ebp - 4]
push esi
call fcn.004040a0
add esp, 0xc
cmp dword [ebp - 0x10], edi
jg 0x402cd0
push esi
call fcn.00403150
add esp, 4
cmp dword [0x40c7fc], 0
je 0x402e4f
push 0x40b140
mov esi, 0x40c590
call fcn.00403810
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + 0x40c58f], 0
push esi
call fcn.004037e0
add esp, 4
xor al, al
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xfa
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xfa
jmp 0x402eab
call fcn.00403150
add esp, 4
mov al, 0xfa
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xfa
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xf9
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xf9
jmp 0x402eab
push esi
call fcn.00403150
add esp, 4
mov al, 0xfb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret