Function at 0x4029d0
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 0x402d9f
push ebp
push esi
mov esi, dword [esp + 0x58]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004028f0
push 0x7ff8
push 2
mov dword [0x4123fc], esi
call edi
push eax
call ebx
test eax, eax
mov dword [0x412434], eax
je 0x402d66
push 0xa
push str.SUSS
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402a5d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a5d
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 0x402aaf
mov eax, dword [0x412468]
test eax, eax
je 0x402aaf
cmp dword [eax], 0
jne 0x402af9
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 0x402b06
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 0x402af9
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 0x402b06
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], 0x401f50
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], 0x40f184
call dword [sym.imp.USER32.dll_RegisterClassA]
push 3
push 0x40f190
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], eax
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402c09
push 3
push 0x40f194
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402c09
push 2
push 0x40f198
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402c09
push 2
push 0x40f19c
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402c09
push 2
push 0x40f1a0
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402c09
xor eax, eax
jmp 0x402c0e
mov eax, 1
mov ecx, dword [0x412468]
test ecx, ecx
je 0x402c2a
test eax, eax
jne 0x402c25
cmp dword [ecx], 0
jne 0x402c25
xor eax, eax
jmp 0x402c2a
mov eax, 1
cmp word [esp + 0x10], 0
je 0x402d66
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 0x402d66
push 3
push 0x40f1b0
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402cf3
push 3
push 0x40f1b4
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402cf3
push 2
push 0x40f1b8
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402cf3
push 2
push 0x40f1bc
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402cf3
push 2
push 0x40f1c0
push edi
call fcn.0040c190
add esp, 0xc
test eax, eax
je 0x402cf3
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.004015d0
test eax, eax
jne 0x402d42
push esi
call fcn.00401860
add esp, 4
test eax, eax
jne 0x402d42
call fcn.00401380
mov eax, dword [0x40f030]
test eax, eax
jl 0x402d42
push esi
call fcn.00401990
add esp, 4
test eax, eax
jne 0x402d42
push edi
push esi
call fcn.00401c00
add esp, 8
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [0x40f03a]
test al, al
je 0x402d66
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.00401b50
mov eax, dword [0x41281c]
test eax, eax
je 0x402d9d
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