Function at 0x404580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
mov ecx, 5
push esi
lea esi, [ebp - 0x38]
push ebx
mov edi, esi
sub esp, 0x7c
mov dword [ebp - 0x60], 1
mov edx, 0x20
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov ecx, 0x400
mov edi, 0xa
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov eax, dword [0x411680]
mov dword [ebp - 0x5c], ebx
mov ebx, esi
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40497b
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x404650
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404650
xor edx, edx
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x404610
mov esi, dword [0x409028]
test esi, esi
je 0x404650
mov eax, dword [0x409090]
test eax, eax
je 0x404650
mov dword [esp + 0xc], ebx
mov edi, 0x20
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
lea esi, [esi]
cld
mov esi, ebx
mov ecx, 5
mov edi, str.true
mov eax, 2
mov edx, 0xa
repe cmpsb byte [esi], byte es:[edi]
sete bl
mov esi, 0x400
movzx ecx, bl
mov dword [0x4111d8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov ebx, dword [0x411680]
mov dword [esp], ebx
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x4049ae
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x404720
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404720
xor edx, edx
nop
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + 0x4111e0], al
inc edx
test al, al
jne 0x4046d0
mov ebx, dword [0x409028]
test ebx, ebx
je 0x404720
mov eax, dword [0x409090]
test eax, eax
je 0x404720
mov dword [esp], eax
mov ecx, 0x4111e0
mov esi, 2
mov dword [esp + 0xc], ecx
mov edi, str.Resource__d:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_fprintf
lea esi, [esi]
lea edi, [edi]
mov eax, 0xa
mov edi, 0x400
mov ebx, 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404993
mov dword [esp + 4], eax
mov esi, dword [0x411680]
mov dword [esp], esi
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4047d0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4047d0
xor edx, edx
movzx eax, byte [edx + ecx]
mov byte [edx + 0x411260], al
inc edx
test al, al
jne 0x404780
mov ecx, dword [0x409028]
test ecx, ecx
je 0x4047d0
mov eax, dword [0x409090]
test eax, eax
je 0x4047d0
mov dword [esp], eax
mov edi, 0x411260
mov ebx, 3
mov dword [esp + 0xc], edi
mov edx, str.Resource__d:_t_s_n
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fprintf
lea esi, [esi]
lea edi, [edi]
mov esi, dword [0x4111d8]
test esi, esi
je 0x40480a
cmp byte [0x4111e0], 0
jne 0x404851
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403b60
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404841
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x5c]
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00403b60
test eax, eax
jne 0x4047ff
mov dword [ebp - 0x64], 0
cmp byte [0x4111e0], 0
jne 0x404a7e
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4047ff
call fcn.004040f0
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cld
xor eax, eax
lea esi, [ebp - 0x58]
mov ecx, 5
mov edi, esi
mov edx, 0x12
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov ecx, 0xa
mov ebx, 0x400
mov dword [esp + 0xc], ebx
mov edi, esi
mov dword [esp + 4], ecx
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404c32
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4048ea
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4048ea
xor edx, edx
jmp 0x4048d0
movzx ebx, byte [edx + ecx]
mov byte [edx + edi], bl
inc edx
test bl, bl
jne 0x4048d0
mov esi, dword [0x409028]
test esi, esi
jne 0x404c02
mov dword [esp], edi
call sub.msvcrt.dll_atoi
lea esi, [eax - 2]
mov ebx, eax
cmp esi, 1
ja 0x404a4c
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov edi, 2
mov dword [esp + 4], edi
call fcn.00402b40
cmp ebx, 3
je 0x40492f
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b40
mov edi, dword [0x4111d4]
test edi, edi
jne 0x4049f4
cmp esi, 1
ja 0x4049c9
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov esi, 2
mov dword [esp + 4], esi
call fcn.00402b40
cmp ebx, 3
je 0x4049e6
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov ebx, 1
mov dword [esp + 4], ebx
call fcn.00402b40
jmp 0x4049e6
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
sub esp, 4
jmp 0x404650
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [0x411260], 0
sub esp, 4
jmp 0x4047d0
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [0x4111e0], 0
sub esp, 4
jmp 0x404720
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b40
test ebx, ebx
jne 0x404c7c
mov edx, dword [0x4111d4]
test edx, edx
je 0x4047e3
mov dword [esp], 0x4090a0
mov edi, 0x411464
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x409090]
test eax, eax
je 0x4047ff
test byte [0x4111d5], 1
mov edx, 0x408207
jne 0x404a29
mov edx, 0x40820a
mov dword [esp + 0xc], edx
mov ebx, 0x4112e0
mov esi, str.Runtime_used:_t_s___s_bit__n
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4047ff
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov ecx, 1
mov dword [esp + 4], ecx
call fcn.00402b40
test ebx, ebx
je 0x40492f
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov edx, 2
mov dword [esp + 4], edx
jmp 0x40492a
cld
mov ecx, 5
lea edx, [ebp - 0x58]
mov edi, edx
mov ebx, 0xa
rep stosd dword es:[edi], eax
mov dword [esp + 4], ebx
mov ecx, 0x400
mov eax, 0x12
mov dword [esp + 0xc], ecx
mov edi, edx
mov dword [esp + 8], eax
mov esi, dword [0x411680]
mov dword [esp], esi
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404cc8
mov dword [esp + 4], eax
mov esi, dword [0x411680]
mov dword [esp], esi
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x404b0f
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404b0f
xor edx, edx
movzx ebx, byte [edx + ecx]
mov byte [edx + edi], bl
inc edx
test bl, bl
jne 0x404aed
mov eax, dword [0x409028]
test eax, eax
je 0x404b0f
mov eax, dword [0x409090]
test eax, eax
jne 0x404ce0
mov dword [esp], edi
call sub.msvcrt.dll_atoi
lea esi, [eax - 2]
mov ebx, eax
cmp esi, 1
ja 0x404c4a
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov edi, 2
mov dword [esp + 4], edi
call fcn.00402b40
cmp ebx, 3
je 0x404b54
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b40
mov edi, dword [0x4111d4]
test edi, edi
jne 0x404ba4
cmp esi, 1
ja 0x404c96
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov esi, 2
mov dword [esp + 4], esi
call fcn.00402b40
cmp ebx, 3
je 0x404b96
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov ebx, 1
mov dword [esp + 4], ebx
call fcn.00402b40
mov ecx, dword [0x4111d4]
test ecx, ecx
je 0x404834
mov dword [esp], 0x4090a0
mov edi, 0x411464
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x409090]
test eax, eax
je 0x404bf3
test byte [0x4111d5], 1
mov edx, 0x408207
jne 0x404bd5
mov edx, 0x40820a
mov dword [esp + 0xc], edx
mov ebx, 0x4112e0
mov esi, str.Runtime_used:_t_s___s_bit__n
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x64]
jmp 0x404837
mov eax, dword [0x409090]
test eax, eax
je 0x4048ea
mov dword [esp + 0xc], edi
mov edx, 0x12
mov ecx, str.Resource__d:_t_s_n
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4048ea
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x58], 0
sub esp, 4
jmp 0x4048ea
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402b40
test ebx, ebx
je 0x404b54
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
jmp 0x404b4f
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b40
jmp 0x4049e6
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b40
test ebx, ebx
je 0x404b96
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov edx, 2
mov dword [esp + 4], edx
jmp 0x404b91
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x58], 0
sub esp, 4
jmp 0x404b0f
mov dword [esp + 0xc], edi
mov ecx, 0x12
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 0x404b0f