Function at 0x4029e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x44
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x104
push 2
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call ebx
test eax, eax
mov dword [0x412814], eax
je 0x402daf
push ebp
push esi
mov esi, dword [esp + 0x58]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00402900
push 0x7ff8
push 2
mov dword [0x4123fc], esi
call edi
push eax
call ebx
test eax, eax
mov dword [0x412434], eax
je 0x402d76
push 0xa
push 0x40f164
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402a6d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a6d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x412468], eax
mov eax, dword [0x4123fc]
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push 0
push 0
push 0
push 0
push str.LDSCR
push eax
call edi
mov esi, eax
test esi, esi
je 0x402abf
mov eax, dword [0x412468]
test eax, eax
je 0x402abf
cmp dword [eax], 0
jne 0x402b09
lea ecx, [esp + 0x14]
push ecx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0x18]
push esi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x402b16
mov eax, dword [0x4123fc]
push 0x8040
push 0
push 0
push 0
push str.STUBIMG
push eax
call edi
mov esi, eax
test esi, esi
je 0x402b09
lea ecx, [esp + 0x14]
push ecx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add eax, 6
lea ebx, [edx + 0xf4]
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x402b16
mov ebx, 0xeb
mov dword [esp + 0x58], 0x3c
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, ebx
push 1
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call edi
mov ecx, 0xa
lea edi, [esp + 0x2c]
mov ebp, dword [esp + 0x58]
push str.IDI_ICON
sub eax, ebp
cdq
sub eax, edx
mov ebp, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x4123fc]
xor edi, edi
push eax
mov dword [esp + 0x34], 2
sar ebp, 1
mov dword [esp + 0x38], 0x401f60
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x1e
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push edi
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], edi
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x40f188
call dword [sym.imp.USER32.dll_RegisterClassA]
push 3
push 0x40f194
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], eax
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402c19
push 3
push 0x40f198
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402c19
push 2
push 0x40f19c
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402c19
push 2
push 0x40f1a0
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402c19
push 2
push 0x40f1a4
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402c19
xor eax, eax
jmp 0x402c1e
mov eax, 1
mov ecx, dword [0x412468]
test ecx, ecx
je 0x402c3a
test eax, eax
jne 0x402c35
cmp dword [ecx], 0
jne 0x402c35
xor eax, eax
jmp 0x402c3a
mov eax, 1
cmp word [esp + 0x10], 0
je 0x402d76
mov edx, dword [0x4123fc]
mov ecx, dword [esp + 0x58]
neg eax
push 0
push edx
sbb eax, eax
push 0
and eax, 0xf0000000
push 0
push ecx
add eax, 0x10000000
push ebx
push ebp
or eax, 0x80000000
push esi
push eax
push 0x41247c
push str.pstubClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x402d76
push 3
push 0x40f1b4
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402d03
push 3
push 0x40f1b8
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402d03
push 2
push 0x40f1bc
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402d03
push 2
push 0x40f1c0
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402d03
push 2
push 0x40f1c4
push edi
call fcn.0040c1a0
add esp, 0xc
test eax, eax
je 0x402d03
push 0
push 0
push 8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x412814]
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [0x412820], eax
call fcn.004015e0
test eax, eax
jne 0x402d52
push esi
call fcn.00401870
add esp, 4
test eax, eax
jne 0x402d52
call fcn.00401390
mov eax, dword [0x40f030]
test eax, eax
jl 0x402d52
push esi
call fcn.004019a0
add esp, 4
test eax, eax
jne 0x402d52
push edi
push esi
call fcn.00401c10
add esp, 8
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [0x40f03a]
test al, al
je 0x402d76
push 0
push str.Error
push str.Unable_to_execute.__The_cause_may_be_an_incomplete_download.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401b60
mov eax, dword [0x41281c]
test eax, eax
je 0x402dad
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x41281c]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x41281c], 0
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret 0x10