Function at 0x10003930
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100098a8
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [0x1000d424]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1000c6b8
mov eax, edi
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000398f
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
mov dword [esi + 0x14], 0x19d
jmp 0x10003a8b
mov eax, dword [0x1000d424]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x100039d4
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
jmp 0x10003a9e
mov edx, dword [0x1000d424]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x10003a1a
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x30]
push eax
jmp 0x10003a9e
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10003a56
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
jmp 0x10003a9e
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x10003ac2
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
mov dword [esi + 0x14], 0x1bd
add esp, 8
inc eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2c]
push eax
push edx
push edi
push 0x1000c6a8
push esi
call fcn.100014b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10003b3f
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edi
push 0x1000c6a8
push esi
call fcn.100014b0
push ebp
call fcn.10009400
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, ebx
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, ebp
jmp 0x10003b5f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push esi
push eax
call edi
test eax, eax
je 0x10003b79
mov eax, dword [esp + 0x14]
add esi, eax
sub ebx, eax
jne 0x10003b5b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10003be3
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviResHelper.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push 0x1000c6a8
push esi
call fcn.100014b0
push ebp
call fcn.10009400
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
call fcn.10009400
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret