Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Inspect load icon resource
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0x4894a8
push 0
call fcn.00461f73
push 0xfffffffffffffffd
call fcn.0046269a
add esp, 0xc
push 0
mov dword [0x4a4324], 0x4016a0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0041e330
mov ebx, dword [0x4a4338]
test ebx, ebx
jne 0x401098
call fcn.004220d0
mov ebx, eax
test ebx, ebx
je 0x401066
mov eax, dword [ebx + 0x10]
mov dword [eax + 0x58], 0x4219b0
mov esi, dword [ebx + 0x10]
push 0
xor ecx, ecx
xor eax, eax
call fcn.0041dba0
add esp, 4
mov eax, ebx
call fcn.0041df40
mov esi, dword [ebx + 0x10]
push 0
mov ecx, 1
xor eax, eax
call fcn.0041dba0
add esp, 4
mov dword [0x4a4338], ebx
mov eax, dword [ebp + 0x10]
mov ecx, ebx
call fcn.0041ce10
push 8
push str._CMDLINE
lea edi, [ebx + 0x40]
push ebx
mov dword [esp + 0x28], edi
call fcn.0043db40
mov ecx, dword [ebx + 8]
add esp, 0xc
sub ecx, 0x10
push ecx
lea edx, [esp + 0xac]
push edx
push edi
mov esi, 4
push ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], esi
call fcn.0042f960
add dword [ebx + 8], 0xfffffff0
add esp, 0x10
push 0x82
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x40110d
mov eax, dword [ebx + 8]
mov dword [eax + 8], 0
jmp 0x401119
mov ecx, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 2
add dword [ebx + 8], 0x10
push 9
push 0x4894b8
push ebx
call fcn.0043db40
mov ecx, dword [ebx + 8]
add esp, 0xc
sub ecx, 0x10
push ecx
lea edx, [esp + 0x9c]
push edx
push edi
push ebx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], esi
call fcn.0042f960
mov eax, dword [0x4a3444]
add dword [ebx + 8], 0xfffffff0
push 0
push eax
call fcn.0041d460
mov esi, 1
add esp, 0x18
cmp dword [0x4a3444], esi
jle 0x4011e8
mov ecx, dword [0x4a344c]
mov eax, dword [ecx + esi*4]
mov ecx, ebx
call fcn.0041ce10
mov edi, dword [ebx + 8]
lea eax, [edi - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
push esi
push ebx
call fcn.0042d270
mov edx, dword [edi - 0x10]
mov dword [eax], edx
mov ecx, dword [edi - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [edi - 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
add esp, 8
cmp dword [eax - 8], 4
jl 0x4011d7
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x4011d7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test byte [eax + 5], 4
je 0x4011d7
mov ecx, dword [ebx + 0x10]
and byte [eax + 5], 0xfb
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x18], edx
mov dword [ecx + 0x28], eax
add dword [ebx + 8], 0xfffffff0
inc esi
cmp esi, dword [0x4a3444]
jl 0x401172
mov edi, dword [esp + 0x1c]
push 5
push 0x4894c4
push ebx
call fcn.0043db40
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 8]
add esp, 0xc
sub eax, 0x10
push eax
lea ecx, [esp + 0xbc]
push ecx
push edi
push ebx
mov dword [esp + 0xd0], 4
call fcn.0042f960
add dword [ebx + 8], 0xfffffff0
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0x20]
mov edx, str.import_preload_
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], edx
push eax
xor ecx, ecx
lea esi, [esp + 0x6c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x88], esi
lea esi, [esp + 0x7c]
push 0x43c160
mov eax, ebx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], 0x4217f0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
call fcn.0043c070
mov edi, dword [ebx + 0x10]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add esp, 0x1c
mov esi, eax
mov eax, dword [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
call edx
mov ecx, dword [esp + 0x20]
sub dword [edi + 0x44], ecx
xor edi, edi
add esp, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edi
cmp esi, edi
jne 0x401310
mov eax, dword [ebx + 8]
sub eax, 0x10
mov dword [esp + 0x44], eax
sub eax, dword [ebx + 0x20]
lea edx, [esp + 0x44]
push eax
push edx
push 0x41da80
xor edx, edx
mov eax, ebx
mov dword [esp + 0x54], 0xffffffff
call fcn.0043c070
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
add esp, 0xc
cmp edx, dword [ecx + 8]
jb 0x401308
mov dword [ecx + 8], edx
mov dword [esp + 0xc], edi
cmp eax, edi
je 0x401318
mov dword [esp + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x4894dc
mov esi, eax
push 0x4894e0
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test esi, esi
je 0x401538
test edi, edi
je 0x401538
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esp + 0x20], eax
test eax, eax
je 0x401538
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 0x28], eax
test eax, eax
je 0x401538
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x10], edi
cmp ecx, dword [eax + 0x40]
jb 0x40138b
mov eax, ebx
call fcn.0042ef10
mov edx, dword [esp + 0x28]
mov esi, dword [ebx + 8]
push edi
push edx
push ebx
call fcn.0043db40
mov ecx, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
add dword [ebx + 8], 0x10
mov eax, dword [ebx + 8]
add esp, 0xc
cmp edi, 2
jb 0x4013da
mov edx, dword [esp + 0x28]
movsx esi, byte [edx]
cmp esi, 0xff
jne 0x4013da
movsx edx, byte [edx + 1]
cmp edx, 0xfe
jne 0x4013da
cmp dword [eax - 8], ecx
jne 0x4013da
mov eax, dword [eax - 0x10]
mov byte [eax + 7], 0x10
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
test edi, edi
je 0x401538
mov esi, dword [ebx + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
cmp eax, 4
je 0x40143c
cmp eax, 7
jne 0x40140d
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x40140d
lea esi, [eax + 0x18]
jmp 0x401441
mov edi, ebx
call fcn.0042f140
test eax, eax
jne 0x401420
mov edi, dword [esp + 0x10]
xor esi, esi
jmp 0x401441
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x44]
cmp edx, dword [eax + 0x40]
jb 0x401432
mov eax, ebx
call fcn.0042ef10
mov esi, dword [ebx + 8]
mov edi, dword [esp + 0x10]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x401453
mov eax, ebx
call fcn.0042ef10
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x28]
jne 0x401463
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x40146b
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
push eax
xor eax, eax
mov ecx, ebx
call fcn.0043d600
mov dword [eax + 0x14], 0x41eb80
mov ecx, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 6
add dword [ebx + 8], 0x10
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0xc]
add esp, 4
sar eax, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x20], eax
jne 0x40153f
mov eax, esi
cmp edi, 3
jb 0x4014c5
cmp byte [esi], 0xef
jne 0x4014c5
cmp byte [esi + 1], 0xbb
jne 0x4014c5
cmp byte [esi + 2], 0xbf
jne 0x4014c5
lea eax, [esi + 3]
add edi, 0xfffffffd
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4a4334]
push edx
mov edx, 0x4217f0
mov ecx, ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0
call fcn.0041db10
add esp, 4
test eax, eax
jne 0x40153f
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4014fe
xor edx, edx
jmp 0x40150a
mov ecx, ebx
call fcn.0041c6f0
sub eax, dword [ebx + 0x20]
mov edx, eax
mov eax, dword [ebx + 8]
sub eax, 0x10
mov dword [esp + 0x20], eax
sub eax, dword [ebx + 0x20]
mov dword [esp + 0x24], 1
push eax
lea eax, [esp + 0x24]
push eax
push 0x41da80
mov eax, ebx
call fcn.0043c070
add esp, 0xc
test eax, eax
jmp 0x40153d
cmp dword [esp + 0xc], 0
je 0x40155a
mov ecx, dword [0x4a4334]
push 1
push ecx
call fcn.0041e7d0
add esp, 8
mov dword [esp + 0xc], 0xffffffff
jmp 0x4015b2
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 8]
sub eax, 0x10
cmp ecx, 3
je 0x40159e
cmp ecx, 4
jne 0x401690
mov eax, dword [eax]
add eax, 0x10
lea edi, [esp + 0x10]
call fcn.0043df00
test eax, eax
je 0x401690
fld qword [esp + 0x10]
mov dword [esp + 0x80], 3
fstp qword [esp + 0x78]
lea eax, [esp + 0x78]
fld qword [eax]
fadd qword [0x48e7e8]
fstp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
push 0xe
push 0x4894e4
push ebx
call fcn.0043db40
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 8]
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
push ebx
mov dword [esp + 0xa4], 4
call fcn.0042f3e0
add dword [ebx + 8], 0x10
mov eax, dword [ebx + 8]
add eax, 0xfffffff0
add esp, 0x14
cmp eax, 0x48a938
je 0x401613
cmp dword [eax + 8], 6
jne 0x401613
push edi
push eax
push ebx
call fcn.0043be80
add esp, 0xc
mov eax, ebx
call fcn.0042f0a0
mov eax, dword [0x4a4338]
cmp eax, edi
je 0x40162e
call fcn.00422220
mov dword [0x4a4338], edi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
push 0x4a5a00
call esi
push 0x4a59e0
call esi
push 0x4a5a20
call esi
mov eax, dword [0x4a433c]
call fcn.00422220
mov eax, dword [0x4a4330]
mov dword [0x4a433c], edi
cmp eax, edi
je 0x40166b
push eax
call fcn.00462e08
add esp, 4
mov eax, dword [0x4a432c]
cmp eax, edi
je 0x40167d
push eax
call fcn.00462e08
add esp, 4
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0xc], 0
jmp 0x4015b2