Function at 0x4194d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f648
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, dword [eax]
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [esi - 0xc], ebp
jl 0x41950e
mov dword [esp + 0x28], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41952e
mov ecx, dword [0x424038]
cmp esi, ebp
mov dword [esp + 0x28], ecx
jne 0x419520
xor eax, eax
jmp 0x419523
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.00413790
mov edx, str.ExpDataLogo.jpg
mov dword [esp + 0x20], ebp
test edx, edx
jne 0x41953f
xor eax, eax
jmp 0x419546
push str.ExpDataLogo.jpg
call edi
push str.ExpDataLogo.jpg
push eax
lea ecx, [esp + 0x30]
call fcn.004102b0
mov eax, dword [0x4248b8]
push 0x424334
push 0xd8
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
je 0x4195a8
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4195a8
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x4195a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0xc], edi
jne 0x4195dc
mov eax, dword [esp + 0x28]
mov edx, dword [0x42403c]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4196c5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4196c5
jmp 0x4196b5
mov eax, dword [esp + 0x28]
push ebx
mov dword [esp + 0x14], ebp
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4195f7
cmp dword [eax - 4], ebp
jge 0x41964e
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x419600
mov ecx, ebp
push ecx
lea ecx, [esp + 0x30]
call fcn.00410180
test eax, eax
je 0x419652
mov edi, dword [esp + 0x2c]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x41964a
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41964a
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x41968e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov edx, dword [0x42403c]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4196c5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4196c5
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret