Function at 0x401a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103a8
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x416008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ebx, dword [esi]
mov dword [ebp - 0x44], ebx
mov edi, dword [ebx + 4]
cmp byte [edi + 0xd], 0
jne 0x401afe
mov ebx, ecx
push dword [edi + 8]
mov ecx, ebx
push ebx
call fcn.00404e90
mov esi, edi
mov edi, dword [edi]
lea ecx, [esi + 0x10]
call fcn.004020a0
push 0x40
push esi
call fcn.00409afe
add esp, 8
cmp byte [edi + 0xd], 0
je 0x401ad0
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebx + 4], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov ecx, esi
push eax
mov dword [esi + 4], 0
mov dword [ebp - 0x1c], str.NSudo.VersionText
mov dword [ebp - 0x18], str.M2_Team_NSudo_Launcher_9.0_Preview_1__Build_2676_
call fcn.00404840
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.NSudo.LogoText
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], str.M2_Team_NSudo_Launcher_9.0_Preview_1__Build_2676__r_n
push eax
mov ecx, esi
call fcn.00404840
mov edx, 0x7d3
lea ecx, [ebp - 0x60]
call fcn.00401910
mov edx, eax
mov dword [ebp - 4], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x40], str.NSudo.String.Links
mov dword [ebp - 0x34], ecx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00404870
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x401beb
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401be1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402028
push edx
push ecx
call fcn.00409afe
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x401c2c
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402028
push edx
push ecx
call fcn.00409afe
add esp, 8
mov edx, 0x7d2
lea ecx, [ebp - 0x60]
call fcn.00401910
mov edx, eax
mov dword [ebp - 4], 2
mov eax, dword [edx + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x40], str.NSudo.String.CommandLineHelp
mov dword [ebp - 0x34], ecx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00404870
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x401cd0
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401cc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40202d
push edx
push ecx
call fcn.00409afe
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x401d11
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40202d
push edx
push ecx
call fcn.00409afe
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
mov esi, eax
push ebx
push 0x7d1
push str.String
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401d58
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401d58
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401d6c
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x402016
test eax, eax
js 0x402016
xor eax, eax
add eax, 3
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
lea eax, [ebx - 3]
mov dword [ebp - 0x24], 0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push ebx
call fcn.00401820
add esp, 8
test al, al
je 0x402016
xor esi, esi
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x24], esi
jbe 0x40200a
mov ecx, dword [ebp - 0x10]
nop
mov edi, esi
shl edi, 4
add edi, ecx
mov dword [ebp - 0x18], edi
cmp dword [edi], 3
jne 0x401ffd
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
lea edx, [ecx + ebx]
cmp eax, 0xc
jne 0x401ffa
push eax
push str.Translations
push edx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401ffa
cmp dword [edi + 0x10], 1
jne 0x401ffa
mov eax, dword [edi + 0x1c]
xor ebx, ebx
test eax, eax
je 0x401ff4
add edi, 0x34
lea esp, [esp]
cmp dword [edi - 0x14], 3
jne 0x401fdf
cmp dword [edi - 4], 3
jne 0x401fdf
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
mov dword [ebp - 0x78], 0
add eax, dword [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.004046a0
lea edx, [ebp - 0x78]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00408c20
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [edi - 0x10]
mov edx, dword [edi - 0xc]
sub edx, ecx
mov dword [ebp - 0x60], 0
add ecx, dword [ebp - 0x14]
push edx
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.004046a0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x94], eax
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 7
push eax
call fcn.00404a30
lea ecx, [ebp - 0xa8]
call fcn.004020a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x401f94
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402028
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 0x10
jb 0x401fdf
mov eax, dword [ebp - 0x78]
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x401fd5
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x402028
push edx
push eax
call fcn.00409afe
add esp, 8
mov eax, dword [ebp - 0x18]
inc ebx
add edi, 0x20
mov eax, dword [eax + 0x1c]
cmp ebx, eax
jb 0x401e20
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x14]
inc esi
add esi, eax
mov ecx, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x24]
jb 0x401dc0
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040a5e0
call fcn.0040a5e0
int3