Function at 0x403d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x815c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00406c70
lea esi, [ebp - 0x128]
mov edx, 0x104
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], edx
xor eax, eax
mov edi, 0x400
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], edi
mov ecx, 1
mov edx, 0xa
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x403e91
mov dword [esp + 4], eax
mov ecx, dword [0x412880]
mov dword [esp], ecx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x403eb0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x403eb0
xor edx, edx
mov esi, esi
lea edi, [edi]
movzx eax, byte [edx + ecx]
mov byte [edx + esi], al
inc edx
test al, al
jne 0x403dc0
mov edi, dword [0x40a028]
test edi, edi
je 0x403de3
mov eax, dword [0x40a090]
test eax, eax
jne 0x403fde
xor edx, edx
mov ecx, 0x8000
lea edi, [ebp - 0x8128]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00403100
mov eax, dword [0x40a090]
test eax, eax
jne 0x403fc4
cmp byte [ebp - 0x8128], 0x5c
je 0x403e3a
cmp byte [ebp - 0x8127], 0x3a
jne 0x403f77
mov dword [esp + 4], edi
mov dword [esp], 0x40a1a4
call sub.msvcrt.dll_strcpy
mov dword [esp], 0x40a1a4
call fcn.00402690
test eax, eax
je 0x403eb0
mov edi, dword [0x40a020]
test edi, edi
jne 0x403eba
mov ecx, 4
mov dword [0x4122d4], ecx
mov eax, 0x40a1a4
mov dword [esp + 4], eax
mov dword [esp], 0x412664
call sub.msvcrt.dll_strcpy
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x128], 0
sub esp, 4
mov esi, esi
lea edi, [edi]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cld
xor eax, eax
lea esi, [ebp - 0x8148]
mov edi, esi
mov ecx, 5
mov edx, 0x400
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
mov ecx, 0xa
mov ebx, esi
mov dword [esp + 4], ecx
mov esi, 0x1d
mov dword [esp + 8], esi
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404001
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x403f50
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x403f50
xor edx, edx
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x403f2d
mov esi, dword [0x40a028]
test esi, esi
je 0x403f50
mov eax, dword [0x40a090]
test eax, eax
jne 0x40401c
cld
mov ecx, 5
mov esi, ebx
mov edi, str.true
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb bl
cmp dl, bl
mov ecx, 0x104
je 0x403e69
jmp 0x403e64
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [esp], 0x40a1a4
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strncpy
mov dword [esp], 0x40a1a4
call sub.msvcrt.dll_strlen
cmp byte [eax + 0x40a1a3], 0x5c
je 0x403faf
mov edx, 0x5c
mov word [eax + 0x40a1a4], dx
mov dword [esp + 4], edi
mov dword [esp], 0x40a1a4
call sub.msvcrt.dll_strcat
jmp 0x403e4a
mov dword [esp + 8], edi
mov esi, str.Bundled_JRE:_t_s_n
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x403e24
mov dword [esp + 0xc], esi
mov ecx, 1
mov edx, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x403de3
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x8148], 0
sub esp, 4
jmp 0x403f50
mov dword [esp + 0xc], ebx
mov edi, 0x1d
mov ecx, str.Resource__d:_t_s_n
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x403f50