Function at 0x404740
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 [0x412880]
mov dword [ebp - 0x5c], ebx
mov ebx, esi
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404c7b
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 0x404810
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404810
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 0x4047d0
mov esi, dword [0x40a028]
test esi, esi
je 0x404810
mov eax, dword [0x40a090]
test eax, eax
je 0x404810
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, 0x40915c
mov eax, 2
mov edx, 0xa
repe cmpsb byte [esi], byte es:[edi]
sete bl
mov esi, 0x400
movzx ecx, bl
mov dword [0x4122d8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov ebx, dword [0x412880]
mov dword [esp], ebx
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404cae
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 0x4048e0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4048e0
xor edx, edx
nop
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + 0x4122e0], al
inc edx
test al, al
jne 0x404890
mov ebx, dword [0x40a028]
test ebx, ebx
je 0x4048e0
mov eax, dword [0x40a090]
test eax, eax
je 0x4048e0
mov dword [esp], eax
mov ecx, 0x4122e0
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 dword [esp], 0x4122e0
mov edx, 0x5f
mov dword [esp + 4], edx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x40490d
lea esi, [eax + 1]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 2
jbe 0x404afc
mov dword [esp], 0x4123e0
mov esi, 0x4122e0
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov edx, 0xa
mov edi, 0x400
mov ebx, 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov ecx, dword [0x412880]
mov dword [esp], ecx
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404c93
mov dword [esp + 4], eax
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4049e0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4049e0
xor edx, edx
jmp 0x404990
movzx ebx, byte [edx + ecx]
mov byte [edx + 0x412360], bl
inc edx
test bl, bl
jne 0x404990
mov esi, dword [0x40a028]
test esi, esi
je 0x4049e0
mov eax, dword [0x40a090]
test eax, eax
je 0x4049e0
mov dword [esp], eax
mov edi, 0x412360
mov edx, 3
mov dword [esp + 0xc], edi
mov ecx, str.Resource__d:_t_s_n
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fprintf
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x412360
mov eax, 0x5f
mov dword [esp + 4], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x404a0d
lea esi, [eax + 1]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 2
jbe 0x404aa7
mov dword [esp], 0x412460
mov esi, 0x412360
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov edx, dword [0x4122d8]
test edx, edx
je 0x404a60
cmp byte [0x4123e0], 0
jne 0x404b51
mov edx, dword [ebp - 0x5c]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403d20
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404a97
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 ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00403d20
test eax, eax
jne 0x404a55
mov dword [ebp - 0x64], 0
cmp byte [0x4123e0], 0
jne 0x404d7e
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x404a55
call fcn.004042b0
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x412460
mov edi, esi
mov ecx, 0x412360
mov dword [esp + 4], ecx
sub edi, 0x412360
mov ebx, 0x30
mov dword [esp + 8], edi
call sub.msvcrt.dll_strncpy
mov byte [edi + 0x412460], 0
mov dword [esp], 0x412460
call sub.msvcrt.dll_strlen
mov word [eax + 0x412460], bx
mov dword [esp + 4], esi
mov dword [esp], 0x412460
call sub.msvcrt.dll_strcat
jmp 0x404a22
mov dword [esp], 0x4123e0
mov edi, esi
mov eax, 0x4122e0
mov dword [esp + 4], eax
sub edi, 0x4122e0
mov ebx, 0x30
mov dword [esp + 8], edi
call sub.msvcrt.dll_strncpy
mov byte [edi + 0x4123e0], 0
mov dword [esp], 0x4123e0
call sub.msvcrt.dll_strlen
mov word [eax + 0x4123e0], bx
mov dword [esp + 4], esi
mov dword [esp], 0x4123e0
call sub.msvcrt.dll_strcat
jmp 0x404922
cld
xor eax, eax
lea edx, [ebp - 0x58]
mov edi, edx
mov ecx, 5
mov esi, 0x400
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], esi
mov ecx, 0x12
mov ebx, 0xa
mov dword [esp + 8], ecx
mov edi, edx
mov dword [esp + 4], ebx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404f33
mov dword [esp + 4], eax
mov ebx, dword [0x412880]
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x404bea
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404bea
xor edx, edx
jmp 0x404bd0
movzx eax, byte [edx + ecx]
mov byte [edx + edi], al
inc edx
test al, al
jne 0x404bd0
mov esi, dword [0x40a028]
test esi, esi
jne 0x404f03
mov dword [esp], edi
call sub.msvcrt.dll_atoi
lea esi, [eax - 2]
mov ebx, eax
cmp esi, 1
ja 0x404d4c
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov edi, 2
mov dword [esp + 4], edi
call fcn.00402cb0
cmp ebx, 3
je 0x404c2f
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402cb0
mov edi, dword [0x4122d4]
test edi, edi
jne 0x404cf4
cmp esi, 1
ja 0x404cc9
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov esi, 2
mov dword [esp + 4], esi
call fcn.00402cb0
cmp ebx, 3
je 0x404ce6
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov ebx, 1
mov dword [esp + 4], ebx
call fcn.00402cb0
jmp 0x404ce6
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
sub esp, 4
jmp 0x404810
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [0x412360], 0
sub esp, 4
jmp 0x4049e0
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [0x4122e0], 0
sub esp, 4
jmp 0x4048e0
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402cb0
test ebx, ebx
jne 0x404f7d
mov ecx, dword [0x4122d4]
test ecx, ecx
je 0x404a39
mov dword [esp], 0x40a1a4
mov edi, 0x412664
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x40a090]
test eax, eax
je 0x404a55
test byte [0x4122d5], 1
mov edx, 0x409207
jne 0x404d29
mov edx, 0x40920a
mov dword [esp + 0xc], edx
mov ebx, 0x4124e0
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 0x404a55
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402cb0
test ebx, ebx
je 0x404c2f
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
jmp 0x404c2a
cld
mov ecx, 5
lea esi, [ebp - 0x58]
mov edi, esi
mov edx, 0x400
mov ebx, 0xa
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
mov eax, 0x12
mov edi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov esi, dword [0x412880]
mov dword [esp], esi
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x404fc9
mov dword [esp + 4], eax
mov ebx, dword [0x412880]
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x404e10
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x404e10
xor edx, edx
movzx eax, byte [edx + ecx]
mov byte [edx + edi], al
inc edx
test al, al
jne 0x404ded
mov edx, dword [0x40a028]
test edx, edx
je 0x404e10
mov eax, dword [0x40a090]
test eax, eax
jne 0x404fe1
mov dword [esp], edi
call sub.msvcrt.dll_atoi
lea esi, [eax - 2]
mov ebx, eax
cmp esi, 1
ja 0x404f4b
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov edi, 2
mov dword [esp + 4], edi
call fcn.00402cb0
cmp ebx, 3
je 0x404e55
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402cb0
mov edi, dword [0x4122d4]
test edi, edi
jne 0x404ea5
cmp esi, 1
ja 0x404f97
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov esi, 2
mov dword [esp + 4], esi
call fcn.00402cb0
cmp ebx, 3
je 0x404e97
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov ebx, 1
mov dword [esp + 4], ebx
call fcn.00402cb0
mov ecx, dword [0x4122d4]
test ecx, ecx
je 0x404a8a
mov dword [esp], 0x40a1a4
mov edi, 0x412664
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x40a090]
test eax, eax
je 0x404ef4
test byte [0x4122d5], 1
mov edx, 0x409207
jne 0x404ed6
mov edx, 0x40920a
mov dword [esp + 0xc], edx
mov ebx, 0x4124e0
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 0x404a8d
mov eax, dword [0x40a090]
test eax, eax
je 0x404bea
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 0x404bea
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x58], 0
sub esp, 4
jmp 0x404bea
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402cb0
test ebx, ebx
je 0x404e55
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
jmp 0x404e50
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov edx, 2
mov dword [esp + 4], edx
call fcn.00402cb0
jmp 0x404ce6
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402cb0
test ebx, ebx
je 0x404e97
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov edx, 2
mov dword [esp + 4], edx
jmp 0x404e92
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x58], 0
sub esp, 4
jmp 0x404e10
mov dword [esp + 0xc], edi
mov ecx, 0x12
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x404e10