Function at 0x419380
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4878cb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004171d0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push eax
mov dword [esp + 0x24], 0xffffffff
call ebx
test eax, eax
mov dword [esp + 0x1c], eax
je 0x419652
mov ecx, dword [ebp + 0xc]
push 0xf0
push edi
push ecx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x419407
mov edx, dword [ebp + 0xc]
push eax
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov dword [esp + 0x28], 0
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x41961b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x41961b
push edi
push eax
call fcn.00411a40
mov edi, eax
add esp, 8
lea ecx, [esp + 0x70]
mov dword [esp + 0x24], edi
call fcn.004509f0
push edi
lea ecx, [esp + 0x74]
mov dword [esp + 0xb4], ebx
call fcn.00450a00
lea ecx, [esp + 0x3c]
call fcn.004509f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
call fcn.004356d0
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x90]
cdq
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00435720
lea ecx, [esp + 0x2c]
call fcn.004356c0
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x78]
call fcn.00450c00
cmp byte [esi + 0x9c], bl
mov al, byte [esi + 0x9d]
mov cl, byte [esi + 0x9e]
mov byte [esp + 0x14], al
mov byte [esp + 0x15], cl
je 0x4194dd
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
jne 0x4194eb
mov dword [esp + 0x18], ebx
jmp 0x4194f8
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jbe 0x4195a2
mov dword [esp + 0x1c], 0
jmp 0x419514
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x419525
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x41952a
call fcn.00465ea2
cmp byte [esi + 0x9c], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov dl, byte [esi + 0x9d]
lea edi, [eax + ecx]
mov al, byte [esi + 0x9e]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
je 0x419561
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call edx
cmp byte [esp + 0x14], 0
je 0x41956f
mov ecx, edi
call fcn.004503c0
cmp byte [esp + 0x15], 0
je 0x41958c
mov eax, dword [esp + 0x3c]
mov edi, dword [edi]
mov cx, word [eax + 0x16]
sub cx, word [edi + 0x10]
sub cx, word [edi + 0xc]
mov word [edi + 0xc], cx
add dword [esp + 0x1c], 0x10
add ebx, 1
cmp ebx, dword [esp + 0x18]
jb 0x419510
mov edi, dword [esp + 0x24]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call dword [ebp + 0x1c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4195c5
test esi, esi
jne 0x4195cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x28]
je 0x4195e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
call fcn.00435f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 0
call fcn.004506b0
lea ecx, [esp + 0x70]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004506b0
jmp 0x419629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x419638
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18