Function at 0x4a388e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d89b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov byte [ebp - 0xd], 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00405ab8
movsx eax, byte [eax]
test eax, eax
je 0x4a3a59
lea ecx, [ebp - 0x130]
call fcn.0042709d
and dword [ebp - 4], 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x130]
call fcn.00427762
test eax, eax
je 0x4a39fa
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0xe], 0
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
push str._ld._ld._ld_c
lea eax, [ebp - 0xa9]
push eax
lea ecx, [ebp - 0x130]
call fcn.00427400
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
call fcn.00405b2a
push eax
call fcn.004b188f
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa9]
call fcn.004055b0
lea ecx, [ebp - 0x7c]
call fcn.004054e3
mov byte [ebp - 4], 2
movsx eax, byte [ebp - 0xe]
push eax
call fcn.004b4960
pop ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x34]
push str._04ld._04ld._04ld_c
lea eax, [ebp - 0x7c]
push eax
call fcn.0040990e
add esp, 0x18
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.00405dcd
movzx eax, al
test eax, eax
je 0x4a39ec
push 1
push str._is_to_old._Replacing_with_new_version.
lea eax, [ebp - 0x97]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405cc1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2b9
push str.D:projectsUTIL_srcgresource.cpp
call fcn.00404405
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x97]
call fcn.004055b0
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.004055b0
jmp 0x4a3a4a
push str._Unable_to_get_version_info.
lea eax, [ebp - 0xbb]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405cc1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2be
push str.D:projectsUTIL_srcgresource.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbb]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00427188
push dword [ebp + 0xc]
call fcn.0040a883
pop ecx
test eax, eax
je 0x4a3a72
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4a3ca9
push 0xa
mov ecx, dword [ebp + 0x10]
call fcn.00405b2a
push eax
call fcn.0041b248
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0041b248
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
call fcn.0041b248
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x4a3c52
cmp dword [ebp - 0x30], 0
je 0x4a3c52
push 1
push dword [ebp + 0x10]
push str.extracting
lea eax, [ebp - 0x85]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2c7
push str.D:projectsUTIL_srcgresource.cpp
call fcn.00404405
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85]
call fcn.004055b0
lea ecx, [ebp - 0x24]
call fcn.004233ea
mov dword [ebp - 4], 6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00424a31
test eax, eax
jne 0x4a3bcd
push 1
push dword [ebp + 0xc]
call fcn.00410074
pop ecx
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00424a31
test eax, eax
jne 0x4a3bcd
push str._Unable_to_open_file_for_write.
lea eax, [ebp - 0x8e]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405cc1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x6c]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2cc
push str.D:projectsUTIL_srcgresource.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8e]
call fcn.004055b0
mov byte [ebp - 0xf], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042354a
mov al, byte [ebp - 0xf]
jmp 0x4a3cab
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.00425564
test eax, eax
jne 0x4a3c44
push str._Unable_to_write
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405cc1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x58]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2d1
push str.D:projectsUTIL_srcgresource.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.004055b0
mov byte [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042354a
mov al, byte [ebp - 0x10]
jmp 0x4a3cab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042354a
jmp 0x4a3ca9
push str._should_be_installed_in_same_directory_as_application._Missing.
lea eax, [ebp - 0xb2]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405cc1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x44]
call fcn.00405b2a
push eax
push str.OPENSSL
push 0x2d6
push str.D:projectsUTIL_srcgresource.cpp
call fcn.004046ac
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb2]
call fcn.004055b0
xor al, al
jmp 0x4a3cab
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret