Function at 0x41c970
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443fb0
mov eax, dword fs:[0]
push eax
mov eax, 0x1628
call fcn.00423e00
mov eax, dword [0x466df4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1578], eax
call fcn.00415840
lea ecx, [ebp - 0x15cc]
call fcn.0040f010
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x15a4]
mov dword [0x4ea810], edi
mov esi, eax
call fcn.0040c780
push 0
push 0x108
push 2
lea eax, [ebp - 0x1514]
mov dword [ebp - 0x15c0], 0x4477bc
push eax
lea ecx, [ebp - 0x1528]
mov dword [ebp - 0x15bc], 0
mov dword [ebp - 0x15b8], 0x4477bc
mov dword [ebp - 0x15b4], 0
mov dword [ebp - 0x15b0], 0x4477bc
mov dword [ebp - 0x15ac], 0
call fcn.00403220
mov eax, dword [ebp - 0x1518]
xor ecx, ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movups xmm0, xmmword [str.enstart]
push 0x30
mov dword [ebp - 0x157c], eax
mov edi, 1
lea eax, [ebp - 0x40]
mov byte [ebp - 0x1572], 1
push 0
push eax
mov byte [ebp - 0x15a8], 0
mov byte [ebp - 0x1573], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00424c20
add esp, 0xc
lea eax, [ebp - 0xea8]
lea ecx, [ebp - 0xebc]
push 0
push 0x108
push 2
push eax
call fcn.00403220
mov eax, dword [ebp - 0xeac]
xor ecx, ecx
push ecx
push 0x108
push 2
mov word [eax], cx
lea eax, [ebp - 0xa60]
push eax
lea ecx, [ebp - 0xa74]
call fcn.00403220
mov eax, dword [ebp - 0xa64]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x468c10], 2
jl 0x41d608
call fcn.00409da0
test al, al
je 0x41caf9
push 0x20
lea eax, [ebp - 0x50]
mov dword [0x466c40], 0xcd
push str.enstart64
push eax
call fcn.0040bab0
add esp, 0xc
mov eax, dword [0x465418]
cmp eax, 8
jne 0x41cb16
push 0x20
mov dword [0x466c40], 0xd1
push str.enstartarm
jmp 0x41cb2c
cmp eax, 9
jne 0x41cb38
push 0x20
mov dword [0x466c40], 0xd2
push str.enstartarm64
lea eax, [ebp - 0x50]
push eax
call fcn.0040bab0
add esp, 0xc
push dword [ebp - 0x1578]
push str._drop
call fcn.0040bc20
add esp, 8
test al, al
jne 0x41d557
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x15a4]
push eax
call fcn.0041e960
add esp, 0xc
test al, al
jne 0x41cb80
push 0
lea ecx, [ebp - 0xa74]
call fcn.00408120
jmp 0x41cb9d
push dword [ebp - 0xa64]
call fcn.00414bb0
add esp, 4
test al, al
jne 0x41cb9d
lea ecx, [ebp - 0xa74]
call fcn.00408700
push 0
push 0
push 0
lea ecx, [ebp - 0x1570]
call fcn.0040a0c0
push 0
push 0x465210
lea eax, [ebp - 0x1570]
push eax
push 0x44d500
push 0
push 0x100
push 0x447320
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040b5a0
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040c7b0
cmp byte [ebp - 0x1571], 0
mov edi, 4
je 0x41cc31
mov eax, dword [ebp - 0x1554]
cmp eax, edi
cmova eax, edi
push eax
push dword [ebp - 0x1540]
lea eax, [ebp - 0x1578]
push eax
call fcn.004246a0
mov eax, dword [ebp - 0x1578]
add esp, 0xc
mov dword [0x4ea814], eax
jmp 0x41cc36
mov eax, dword [0x4ea814]
test eax, eax
jne 0x41ccbe
lea ecx, [ebp - 0x1634]
call fcn.0040eab0
push 0
push 0xa
push 0x2be
push 0x465210
lea ecx, [ebp - 0x1634]
call fcn.00411910
test al, al
je 0x41cc9f
mov eax, dword [ebp - 0x15dc]
cmp eax, 4
cmova eax, edi
push eax
push dword [ebp - 0x15e4]
lea eax, [ebp - 0x1578]
push eax
call fcn.004246a0
mov eax, dword [ebp - 0x1578]
add esp, 0xc
mov ecx, dword [0x4ea814]
test eax, eax
cmovne ecx, eax
mov dword [0x4ea814], ecx
lea ecx, [ebp - 0x1634]
call fcn.0040fad0
mov eax, dword [0x4ea814]
mov ecx, 0x115d
test eax, eax
cmove eax, ecx
mov dword [0x4ea814], eax
lea ecx, [ebp - 0x1570]
call fcn.0040a180
push 0
push 0x108
push 2
lea eax, [ebp - 0xc84]
mov edi, 0x50
push eax
lea ecx, [ebp - 0xc98]
call fcn.00403220
mov eax, dword [ebp - 0xc88]
xor ecx, ecx
push 1
push dword [ebp - 0x157c]
mov dword [ebp - 0x1578], 1
mov word [eax], cx
lea ecx, [ebp - 0xc98]
call fcn.00407fd0
test al, al
je 0x41cedd
nop dword [eax]
mov eax, dword [ebp - 0xc88]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x41cd33
cmp ecx, 0x2f
jne 0x41cd7d
add eax, 2
mov dword [ebp - 0x1594], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx edi, ax
mov eax, dword [ebp - 0x1594]
add eax, 2
cmp word [eax], 0
jne 0x41cd7d
cmp edi, 0x52
je 0x41cd7d
cmp edi, 0x53
je 0x41cd7d
cmp edi, 0x48
je 0x41cd7d
cmp edi, 0x43
je 0x41cd7d
cmp edi, 0x4d
je 0x41cd7d
mov dword [ebp - 4], 0
jmp 0x41ce7e
lea ecx, [edi - 0x43]
cmp ecx, 0x12
ja case.0x41cd89.69
jmp dword [ecx*4 + 0x41d6d0]
push 0x20
push 0xa
push 0
push 4
lea ecx, [ebp - 0x1594]
mov dword [ebp - 0x1594], 0
push ecx
push eax
call fcn.0040c0e0
add esp, 0x18
test al, al
je 0x41ce72
mov eax, dword [ebp - 0x1594]
mov dword [0x4ea814], eax
jmp 0x41ce72
mov byte [ebp - 0x1572], 0
jmp 0x41ce72
cmp dword [0x46541c], 7
jl 0x41ce72
mov byte [ebp - 0x15a8], 1
jmp 0x41ce72
push dword [ebp - 0xa68]
push eax
push dword [ebp - 0xa64]
call fcn.0040bab0
jmp 0x41ce6f
push 0x20
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040bab0
jmp 0x41ce6f
mov byte [ebp - 0x1573], 1
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15c0]
call fcn.0040cc50
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15b8]
call fcn.0040cc50
jmp 0x41ce72
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x1528]
call fcn.00408720
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15b0]
call fcn.0040cc50
jmp 0x41ce72
mov byte [0x466c48], 0
jmp 0x41ce72
push edi
lea eax, [ebp - 0x15a4]
push str.Invalid_token___c_
push eax
call fcn.00405ac0
add esp, 0xc
mov edi, 0x4e
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xc98]
call fcn.004032b0
push 0
push 0x108
push 2
lea eax, [ebp - 0xc84]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [ebp - 0xc98]
call fcn.00403220
mov eax, dword [ebp - 0xc88]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0xc98]
mov eax, dword [ebp - 0x1578]
inc eax
push eax
push dword [ebp - 0x157c]
mov dword [ebp - 0x1578], eax
call fcn.00407fd0
test al, al
jne 0x41cd20
lea ecx, [ebp - 0xc98]
mov dword [ebp - 4], 6
call fcn.004032b0
mov eax, dword [0x4689bc]
mov dword [ebp - 4], 0xffffffff
mov dword [0x4ea818], 0
test eax, eax
je 0x41cf10
push 0x4ea818
call eax
push 0x465210
push dword [ebp - 0xeb0]
lea ecx, [ebp - 0x1590]
push dword [ebp - 0xeac]
push str.SysRegInstallPath
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a020
mov ecx, eax
call fcn.0040b540
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040c7b0
cmp byte [ebp - 0x1571], 0
jne 0x41cf81
push 0
push 0
push 0x44d5a8
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xebc]
call fcn.004079e0
push 0x465210
push str.SysRegInstallPath
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
lea eax, [ebp - 0x15a4]
push eax
call fcn.0041e460
add esp, 4
test al, al
je 0x41d522
push dword [ebp - 0xeac]
lea eax, [ebp - 0x15a4]
push eax
call fcn.0041c7a0
add esp, 8
cmp byte [ebp - 0x1572], 0
je 0x41d3e7
movzx eax, word [0x466c40]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push eax
push dword [0x4ea810]
call edi
test eax, eax
je 0x41d3db
lea eax, [ebp - 0x15a4]
push eax
push dword [ebp - 0xa64]
call fcn.00411cf0
add esp, 8
test al, al
je 0x41d534
cmp byte [ebp - 0x1573], 0
je 0x41d120
push 0xa
push 0xcc
push dword [0x4ea810]
call edi
mov dword [ebp - 0x1578], eax
test eax, eax
je 0x41d120
push eax
push dword [0x4ea810]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x157c], eax
test eax, eax
je 0x41d120
push 0
push 0
push 0
lea ecx, [ebp - 0x1570]
call fcn.0040a0c0
push dword [ebp - 0x1578]
push dword [0x4ea810]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [ebp - 0x1570]
call fcn.0040a3f0
test al, al
je 0x41d109
push dword [ebp - 0x157c]
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x1554]
push eax
push dword [ebp - 0x1540]
call fcn.004246a0
add esp, 0xc
lea eax, [ebp - 0x1570]
lea ecx, [ebp - 0x1590]
push 0x465210
push eax
push dword [0x466b68]
push 0
push 0x100
push dword [0x466b64]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a020
mov ecx, eax
call fcn.0040b9d0
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push dword [ebp - 0x157c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x1570]
call fcn.0040a180
push 0xa
push 0xd4
push dword [0x4ea810]
call edi
mov dword [ebp - 0x157c], eax
test eax, eax
je 0x41d1f4
push eax
push dword [0x4ea810]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d1f4
push 0
push 0
push 0
lea ecx, [ebp - 0x1570]
call fcn.0040a0c0
push dword [ebp - 0x157c]
push dword [0x4ea810]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [ebp - 0x1570]
call fcn.0040a3f0
test al, al
je 0x41d1e2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x1554]
push eax
push dword [ebp - 0x1540]
call fcn.004246a0
add esp, 0xc
lea eax, [ebp - 0x1570]
lea ecx, [ebp - 0x1590]
push 0x465210
push eax
push str.SysRegPubKey
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a020
mov ecx, eax
call fcn.0040b9d0
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x1570]
call fcn.0040a180
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
push 0x465210
lea ecx, [ebp - 0x1590]
call fcn.0040a450
test al, al
je 0x41d23c
push 0x465210
push dword [0x4ea814]
lea ecx, [ebp - 0x1590]
push str.SysRegNodePort
call fcn.0040b850
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push dword [ebp - 0x15a8]
lea eax, [ebp - 0x50]
push 1
push eax
push dword [ebp - 0xa64]
lea eax, [ebp - 0x15a4]
push eax
call fcn.0041c430
add esp, 0x14
test al, al
je 0x41d534
push 0
push 0
push 0x44d5a8
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xebc]
call fcn.004079e0
push 1
push 0x465210
push dword [ebp - 0xeac]
lea ecx, [ebp - 0x1590]
push str.SysRegInstallPath
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a020
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040c7b0
xor eax, eax
lea ecx, [ebp - 0xebc]
cmp byte [ebp - 0x1571], al
mov edi, 1
push eax
push eax
cmovne edi, eax
lea eax, [ebp - 0x50]
push 0x44d5a8
push eax
push dword [ebp - 0xa64]
call fcn.004079e0
mov eax, dword [0x4689c0]
test eax, eax
je 0x41d311
push dword [0x4ea818]
call eax
mov eax, dword [0x4689bc]
mov dword [0x4ea818], 0
test eax, eax
je 0x41d539
push 0x4ea818
call eax
jmp 0x41d539
push 0
push 0x108
push 2
lea eax, [ebp - 0x10cc]
mov byte [0x4ea81c], 1
push eax
lea ecx, [ebp - 0x10e0]
call fcn.00403220
mov eax, dword [ebp - 0x10d0]
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x10e0]
call fcn.004080b0
lea ecx, [ebp - 0x10e0]
call fcn.004080a0
push eax
push str.Usage:_n_s___r___l__port____p__path____n__name____drop__nswitches:_n_drop____:_Drops_the_servlet_to_the_local_directory._n_r_______:_Remove_the_servlet_from_system._n_c_______:_Enable_Servlet_Check_In._n_l__port_:_Set_the_port_to__port_._n_p__path_:_Install_the_servlet_at__path_._n_n__name_:_Install_the_servlet_as__name_._n_h_______:_This_help_message_n
lea eax, [ebp - 0x850]
push 0x400
push eax
call fcn.0040c670
lea eax, [ebp - 0x850]
push eax
push str.Setup_Usage
push 0
push 0
push 0
call fcn.004059a0
add esp, 0x24
lea ecx, [ebp - 0x10e0]
mov dword [ebp - 4], 1
call fcn.004032b0
mov byte [0x4ea81c], 0
lea ecx, [ebp - 0xc98]
mov dword [ebp - 4], 2
call fcn.004032b0
xor edi, edi
jmp 0x41d638
push 0
push str.No_executable_file_is_in_this_setup
jmp 0x41d529
push 0x465210
push dword [0x466b68]
lea ecx, [ebp - 0x1590]
push 0
push 0x100
push dword [0x466b64]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push 0x465210
push str.SysRegPubKey
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push 0x465210
push str.SysRegNodePort
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
lea ecx, [ebp - 0x1588]
call fcn.00419b00
mov ecx, eax
call fcn.00419b70
lea ecx, [ebp - 0x1588]
call fcn.004037a0
push 0x465210
push str.AgentLibraryInfo
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
push 0x465210
push str.SysProps
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a020
mov ecx, eax
call fcn.0040a520
lea ecx, [ebp - 0x158c]
call fcn.0040c7b0
xor edi, edi
jmp 0x41d539
push 0
push str.Log_on_as_Administrator
lea ecx, [ebp - 0x15a4]
call fcn.0040ce80
mov edi, 1
mov eax, dword [0x4689c0]
test eax, eax
je 0x41d54a
push dword [0x4ea818]
call eax
test edi, edi
je 0x41d633
jmp 0x41d61a
push str.Copying_files
push 0x44da34
call fcn.0041d720
add esp, 8
lea eax, [ebp - 0x12f0]
lea ecx, [ebp - 0x1304]
push 0
push 0x108
push 2
push eax
call fcn.00403220
mov eax, dword [ebp - 0x12f4]
xor ecx, ecx
push ecx
push ecx
push 0x44d5a8
mov word [eax], cx
lea eax, [ebp - 0x50]
push eax
push 0x4477bc
lea ecx, [ebp - 0x1304]
call fcn.004079e0
push dword [ebp - 0x12f4]
lea eax, [ebp - 0x15a4]
push dword [0x466c40]
push eax
push dword [0x4ea810]
call fcn.0041c690
add esp, 0x10
mov byte [ebp - 0x1571], al
lea ecx, [ebp - 0x1304]
mov dword [ebp - 4], 9
call fcn.004032b0
cmp byte [ebp - 0x1571], 0
mov dword [ebp - 4], 0xffffffff
je 0x41d61a
xor edi, edi
lea ecx, [ebp - 0x15a4]
push edi
push str.Success
call fcn.0040ce80
jmp 0x41d633
push 0
push str.Unsupported_platform
lea ecx, [ebp - 0x15a4]
call fcn.0040ce80
lea ecx, [ebp - 0x159c]
call fcn.0040cea0
push eax
push 0x44da34
call fcn.0041d720
add esp, 8
call fcn.0041dc30
lea ecx, [ebp - 0xa74]
mov dword [ebp - 4], 0xa
call fcn.004032b0
lea ecx, [ebp - 0xebc]
mov dword [ebp - 4], 0xb
call fcn.004032b0
lea ecx, [ebp - 0x1528]
mov dword [ebp - 4], 0xc
call fcn.004032b0
lea ecx, [ebp - 0x15b0]
call fcn.0040c7b0
lea ecx, [ebp - 0x15b8]
call fcn.0040c7b0
lea ecx, [ebp - 0x15c0]
call fcn.0040c7b0
lea ecx, [ebp - 0x15a4]
call fcn.0040c7e0
test esi, esi
js 0x41d6a4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x15cc]
call fcn.004056a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422f50
mov esp, ebp
pop ebp
ret 0x10