Function at 0x41d200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
mov ecx, dword [esp + 8]
push 0x41f8c8
push eax
mov eax, dword [0x4248b8]
mov dword fs:[0], esp
sub esp, 8
and edx, 0xffff
push ebx
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x41d24d
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x41d271
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41d293
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41d2b1
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x424038]
push ebp
push edi
mov dword [esp + 0x28], eax
lea edi, [ebx + 1]
mov dword [esp + 0x20], 0
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov dword [esp + 0x10], ebx
and ecx, 3
mov dword [esp + 0x14], edx
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
mov ebx, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov esi, edx
mov dword [esp + 0x2c], edi
mov al, byte [edi]
test al, al
je 0x41d31f
cmp al, 0xa
je 0x41d31f
cmp al, 0xd
jne 0x41d3c3
cmp edi, esi
je 0x41d3c0
test esi, esi
mov byte [edi], 0
jne 0x41d332
xor ebp, ebp
jmp 0x41d33b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.00414720
test eax, eax
je 0x41d370
mov edi, dword [esp + 0x28]
mov ecx, 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 eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [eax - 8], ebp
mov ecx, dword [esp + 0x28]
mov byte [ecx + ebp], 0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp ecx, eax
jne 0x41d3a3
test eax, eax
mov esi, 1
je 0x41d386
lea esi, [ecx + ecx]
mov eax, dword [ebx]
lea edx, [esi*4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41d3c0
mov dword [ebx + 8], esi
mov dword [ebx], eax
mov ecx, dword [ebx + 4]
inc ecx
mov dword [ebx + 4], ecx
mov eax, ecx
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
test ecx, ecx
je 0x41d3c0
lea edx, [esp + 0x28]
push edx
call fcn.0041d4f0
lea esi, [edi + 1]
mov eax, dword [esp + 0x10]
inc edi
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
jne 0x41d30d
cmp edi, esi
je 0x41d489
test esi, esi
jne 0x41d3e7
xor ebp, ebp
jmp 0x41d3f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov edi, dword [esp + 0x28]
cmp dword [edi - 0xc], 1
jg 0x41d3ff
cmp ebp, dword [edi - 4]
jle 0x41d41a
lea ecx, [esp + 0x28]
call fcn.004105b0
push ebp
lea ecx, [esp + 0x2c]
call fcn.00410180
test eax, eax
je 0x41d439
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
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 + 0x28]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x28]
mov byte [edx + ebp], 0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp ecx, eax
jne 0x41d46c
test eax, eax
mov esi, 1
je 0x41d44f
lea esi, [ecx + ecx]
mov ecx, dword [ebx]
lea eax, [esi*4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41d489
mov dword [ebx + 8], esi
mov dword [ebx], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
inc ecx
mov eax, ecx
mov dword [ebx + 4], ecx
lea ecx, [edx + eax*4 - 4]
test ecx, ecx
je 0x41d489
lea eax, [esp + 0x28]
push eax
call fcn.0041d4f0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x42403c]
add esp, 4
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax - 0xc]
pop edi
cmp edx, ecx
pop ebp
je 0x41d4d0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d4d0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret