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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443c70
mov eax, dword fs:[0]
push eax
mov eax, 0x162c
call fcn.00423b40
mov eax, dword [0x467fd4]
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.00415770
lea ecx, [ebp - 0x15d0]
call fcn.0040f560
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x15a8]
mov dword [0x4eb8d0], edi
mov esi, eax
call fcn.0040ca30
push 0
push 0x108
push 2
lea eax, [ebp - 0x1514]
mov dword [ebp - 0x15c4], 0x44789c
push eax
lea ecx, [ebp - 0x1528]
mov dword [ebp - 0x15c0], 0
mov dword [ebp - 0x15bc], 0x44789c
mov dword [ebp - 0x15b8], 0
mov dword [ebp - 0x15b4], 0x44789c
mov dword [ebp - 0x15b0], 0
call fcn.004031c0
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 dword [ebp - 0x1598], edi
push 0
push eax
mov byte [ebp - 0x1572], 1
mov byte [ebp - 0x15ac], 0
mov byte [ebp - 0x1573], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00424960
add esp, 0xc
lea eax, [ebp - 0xea8]
lea ecx, [ebp - 0xebc]
push 0
push 0x108
push 2
push eax
call fcn.004031c0
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.004031c0
mov eax, dword [ebp - 0xa64]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x469d00], 2
jl 0x41d656
call fcn.0040a050
test al, al
je 0x41caff
push 0x20
lea eax, [ebp - 0x50]
mov dword [0x467c18], 0xcd
push str.enstart64
push eax
call fcn.0040bc00
add esp, 0xc
mov eax, dword [0x466418]
cmp eax, 8
jne 0x41cb1c
push 0x20
mov dword [0x467c18], 0xd1
push str.enstartarm
jmp 0x41cb32
cmp eax, 9
jne 0x41cb3e
push 0x20
mov dword [0x467c18], 0xd2
push str.enstartarm64
lea eax, [ebp - 0x50]
push eax
call fcn.0040bc00
add esp, 0xc
push dword [ebp - 0x1578]
push str._drop
call fcn.0040bd70
add esp, 8
test al, al
jne 0x41d5a5
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x15a8]
push eax
call fcn.0041e9b0
add esp, 0xc
test al, al
jne 0x41cb86
push 0
lea ecx, [ebp - 0xa74]
call fcn.00408410
jmp 0x41cba3
push dword [ebp - 0xa64]
call fcn.00414c60
add esp, 4
test al, al
jne 0x41cba3
lea ecx, [ebp - 0xa74]
call fcn.004089b0
push 0
push 0
push 0
lea ecx, [ebp - 0x1570]
call fcn.0040a370
push 0
push 0x466210
lea eax, [ebp - 0x1570]
push eax
push 0x44d660
push 0
push 0x100
push 0x447400
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040b6f0
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040ca60
cmp byte [ebp - 0x1571], 0
mov edi, 4
je 0x41cc37
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.004243e0
mov eax, dword [ebp - 0x1578]
add esp, 0xc
mov dword [0x4eb8d4], eax
jmp 0x41cc3c
mov eax, dword [0x4eb8d4]
test eax, eax
jne 0x41ccc4
lea ecx, [ebp - 0x1638]
call fcn.0040ee30
push 0
push 0xa
push 0x2be
push 0x466210
lea ecx, [ebp - 0x1638]
call fcn.00411d30
test al, al
je 0x41cca5
mov eax, dword [ebp - 0x15e0]
cmp eax, 4
cmova eax, edi
push eax
push dword [ebp - 0x15e8]
lea eax, [ebp - 0x1578]
push eax
call fcn.004243e0
mov eax, dword [ebp - 0x1578]
add esp, 0xc
mov ecx, dword [0x4eb8d4]
test eax, eax
cmovne ecx, eax
mov dword [0x4eb8d4], ecx
lea ecx, [ebp - 0x1638]
call fcn.0040ff90
mov eax, dword [0x4eb8d4]
mov ecx, 0x115d
test eax, eax
cmove eax, ecx
mov dword [0x4eb8d4], eax
lea ecx, [ebp - 0x1570]
call fcn.0040a430
push 0
push 0x108
push 2
lea eax, [ebp - 0xc84]
mov edi, 0x50
push eax
lea ecx, [ebp - 0xc98]
call fcn.004031c0
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.004082c0
test al, al
je 0x41cedd
nop
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 + 0x41d71c]
push 0x20
push 0xa
push 0
push 4
lea ecx, [ebp - 0x1594]
mov dword [ebp - 0x1594], 0
push ecx
push eax
call fcn.0040c260
add esp, 0x18
test al, al
je 0x41ce72
mov eax, dword [ebp - 0x1594]
mov dword [0x4eb8d4], eax
jmp 0x41ce72
mov byte [ebp - 0x1572], 0
jmp 0x41ce72
cmp dword [0x46641c], 7
jl 0x41ce72
mov byte [ebp - 0x15ac], 1
jmp 0x41ce72
push dword [ebp - 0xa68]
push eax
push dword [ebp - 0xa64]
call fcn.0040bc00
jmp 0x41ce6f
push 0x20
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040bc00
jmp 0x41ce6f
mov byte [ebp - 0x1573], 1
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15c4]
call fcn.0040cf90
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15bc]
call fcn.0040cf90
jmp 0x41ce72
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x1528]
call fcn.004089d0
jmp 0x41ce72
push eax
lea ecx, [ebp - 0x15b4]
call fcn.0040cf90
jmp 0x41ce72
mov byte [0x467e38], 0
jmp 0x41ce72
push edi
lea eax, [ebp - 0x15a8]
push str.Invalid_token___c_
push eax
call fcn.00405a10
add esp, 0xc
mov edi, 0x4e
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xc98]
call fcn.00403250
push 0
push 0x108
push 2
lea eax, [ebp - 0xc84]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [ebp - 0xc98]
call fcn.004031c0
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.004082c0
test al, al
jne 0x41cd20
lea ecx, [ebp - 0xc98]
mov dword [ebp - 4], 6
call fcn.00403250
mov eax, dword [0x469aac]
mov dword [ebp - 4], 0xffffffff
mov dword [0x4eb8d8], 0
test eax, eax
je 0x41cf10
push 0x4eb8d8
call eax
push 0x466210
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.0040a2d0
mov ecx, eax
call fcn.0040b690
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040ca60
cmp byte [ebp - 0x1571], 0
jne 0x41cf81
push 0
push 0
push 0x44d708
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xebc]
call fcn.00407cd0
push 0x466210
push str.SysRegInstallPath
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
lea eax, [ebp - 0x15a8]
push eax
call fcn.0041e4b0
add esp, 4
test al, al
je 0x41d589
push dword [ebp - 0xeac]
lea eax, [ebp - 0x15a8]
push eax
call fcn.0041c7a0
add esp, 8
cmp byte [ebp - 0x1572], 0
je 0x41d42e
movzx eax, word [0x467c18]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push eax
push dword [0x4eb8d0]
call edi
test eax, eax
je 0x41d412
lea eax, [ebp - 0x15a8]
push eax
push dword [ebp - 0xa64]
call fcn.00412110
add esp, 8
test al, al
je 0x41d424
cmp byte [ebp - 0x1573], 0
je 0x41d120
push 0xa
push 0xcc
push dword [0x4eb8d0]
call edi
mov dword [ebp - 0x1578], eax
test eax, eax
je 0x41d120
push eax
push dword [0x4eb8d0]
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.0040a370
push dword [ebp - 0x1578]
push dword [0x4eb8d0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [ebp - 0x1570]
call fcn.0040a660
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.004243e0
add esp, 0xc
lea eax, [ebp - 0x1570]
lea ecx, [ebp - 0x1590]
push 0x466210
push eax
push dword [0x467b44]
push 0
push 0x100
push dword [0x467b40]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a2d0
mov ecx, eax
call fcn.0040bb20
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push dword [ebp - 0x157c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x1570]
call fcn.0040a430
push 0xa
push 0xd4
push dword [0x4eb8d0]
call edi
mov dword [ebp - 0x157c], eax
test eax, eax
je 0x41d1f4
push eax
push dword [0x4eb8d0]
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.0040a370
push dword [ebp - 0x157c]
push dword [0x4eb8d0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [ebp - 0x1570]
call fcn.0040a660
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.004243e0
add esp, 0xc
lea eax, [ebp - 0x1570]
lea ecx, [ebp - 0x1590]
push 0x466210
push eax
push str.SysRegPubKey
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a2d0
mov ecx, eax
call fcn.0040bb20
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x1570]
call fcn.0040a430
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
push 0x466210
lea ecx, [ebp - 0x1590]
call fcn.0040a6c0
test al, al
je 0x41d23c
push 0x466210
push dword [0x4eb8d4]
lea ecx, [ebp - 0x1590]
push str.SysRegNodePort
call fcn.0040b9a0
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push dword [ebp - 0x15ac]
lea eax, [ebp - 0x50]
push 1
push eax
push dword [ebp - 0xa64]
lea eax, [ebp - 0x15a8]
push eax
call fcn.0041c430
add esp, 0x14
test al, al
je 0x41d424
push 0
push 0
push 0x44d708
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xebc]
call fcn.00407cd0
push 1
push 0x466210
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.0040a2d0
mov ecx, eax
call fcn.0040b970
lea ecx, [ebp - 0x158c]
mov byte [ebp - 0x1571], al
call fcn.0040ca60
cmp byte [ebp - 0x1571], 0
je 0x41d2fe
push 0x466210
mov ecx, 0x46ae14
call fcn.00419ad0
xor edx, edx
mov ecx, 1
test al, al
cmovne ecx, edx
mov dword [ebp - 0x1598], ecx
push 0
push 0
push 0x44d708
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xebc]
call fcn.00407cd0
mov eax, dword [0x469ab0]
test eax, eax
je 0x41d32d
push dword [0x4eb8d8]
call eax
mov eax, dword [0x469aac]
mov dword [0x4eb8d8], 0
test eax, eax
je 0x41d347
push 0x4eb8d8
call eax
mov edi, dword [ebp - 0x1598]
mov eax, dword [0x469ab0]
test eax, eax
je 0x41d35e
push dword [0x4eb8d8]
call eax
test edi, edi
je 0x41d681
jmp 0x41d668
push 0
push 0x108
push 2
lea eax, [ebp - 0x10cc]
mov byte [0x4eb8dc], 1
push eax
lea ecx, [ebp - 0x10e0]
call fcn.004031c0
mov eax, dword [ebp - 0x10d0]
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x10e0]
call fcn.004083a0
lea ecx, [ebp - 0x10e0]
call fcn.00408390
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.0040c920
lea eax, [ebp - 0x850]
push eax
push str.Setup_Usage
push 0
push 0
push 0
call fcn.004058f0
add esp, 0x24
lea ecx, [ebp - 0x10e0]
mov dword [ebp - 4], 1
call fcn.00403250
mov byte [0x4eb8dc], 0
lea ecx, [ebp - 0xc98]
mov dword [ebp - 4], 2
call fcn.00403250
xor edi, edi
jmp 0x41d686
push 0
push str.No_executable_file_is_in_this_setup
lea ecx, [ebp - 0x15a8]
call fcn.0040d1c0
mov edi, 1
jmp 0x41d34d
push 0x466210
push dword [0x467b44]
lea ecx, [ebp - 0x1590]
push 0
push 0x100
push dword [0x467b40]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push 0x466210
push str.SysRegPubKey
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push 0x466210
push str.SysRegNodePort
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push 0x466210
push dword [0x467ad8]
lea ecx, [ebp - 0x1590]
push 0
push 0x100
push dword [0x467ad4]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push 0x466210
push str.AgentLibraryInfo
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
push 0x466210
push str.SysProps
push 0
push 0x100
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1590]
call fcn.0040a2d0
mov ecx, eax
call fcn.0040a790
lea ecx, [ebp - 0x158c]
call fcn.0040ca60
xor edi, edi
jmp 0x41d34d
push 0
push str.Log_on_as_Administrator
lea ecx, [ebp - 0x15a8]
call fcn.0040d1c0
mov edi, 1
jmp 0x41d34d
push str.Copying_files
push 0x44db94
call fcn.0041d770
add esp, 8
lea eax, [ebp - 0x12f0]
lea ecx, [ebp - 0x1304]
push 0
push 0x108
push 2
push eax
call fcn.004031c0
mov eax, dword [ebp - 0x12f4]
xor ecx, ecx
push ecx
push ecx
push 0x44d708
mov word [eax], cx
lea eax, [ebp - 0x50]
push eax
push 0x44789c
lea ecx, [ebp - 0x1304]
call fcn.00407cd0
push dword [ebp - 0x12f4]
lea eax, [ebp - 0x15a8]
push dword [0x467c18]
push eax
push dword [0x4eb8d0]
call fcn.0041c690
add esp, 0x10
mov byte [ebp - 0x1571], al
lea ecx, [ebp - 0x1304]
mov dword [ebp - 4], 9
call fcn.00403250
cmp byte [ebp - 0x1571], 0
mov dword [ebp - 4], 0xffffffff
je 0x41d668
xor edi, edi
lea ecx, [ebp - 0x15a8]
push edi
push str.Success
call fcn.0040d1c0
jmp 0x41d681
push 0
push str.Unsupported_platform
lea ecx, [ebp - 0x15a8]
call fcn.0040d1c0
lea ecx, [ebp - 0x15a0]
call fcn.0040d1e0
push eax
push 0x44db94
call fcn.0041d770
add esp, 8
call fcn.0041dc80
lea ecx, [ebp - 0xa74]
mov dword [ebp - 4], 0xa
call fcn.00403250
lea ecx, [ebp - 0xebc]
mov dword [ebp - 4], 0xb
call fcn.00403250
lea ecx, [ebp - 0x1528]
mov dword [ebp - 4], 0xc
call fcn.00403250
lea ecx, [ebp - 0x15b4]
call fcn.0040ca60
lea ecx, [ebp - 0x15bc]
call fcn.0040ca60
lea ecx, [ebp - 0x15c4]
call fcn.0040ca60
lea ecx, [ebp - 0x15a8]
call fcn.0040ca90
test esi, esi
js 0x41d6f2
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x15d0]
call fcn.004055f0
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.00422c85
mov esp, ebp
pop ebp
ret 0x10