Function at 0x493690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1b71
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push str.from
push ecx
mov dword [ebp - 0x84], ebx
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], 0
call fcn.00484aa0
add esp, 0xc
cmp dword [ebx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 1
jne 0x4938e0
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x493900
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x74], esi
push 6
push 0xe
push 0x400000
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4937c0
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4937c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4937c0
push dword [ebp - 0x7c]
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + edi]
cmp edi, ecx
jae 0x4937c0
movzx edx, word [edi]
test dx, dx
je 0x4937c0
mov eax, dword [esi - 8]
mov ebx, edx
mov ecx, 1
sub eax, ebx
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x493793
push ebx
lea ecx, [ebp - 0x74]
call fcn.00477120
movzx edx, word [edi]
mov esi, dword [ebp - 0x74]
movzx ecx, dx
lea eax, [edi + 2]
push ecx
push eax
push ebx
push esi
call fcn.004b6f28
push eax
call fcn.00476340
add esp, 0x14
cmp ebx, dword [esi - 8]
jg 0x49390a
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x80]
mov ecx, str.00000000000000000000000000000000
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4937ed
test dx, dx
je 0x4937e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4937ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x4937c7
xor eax, eax
jmp 0x4937f2
sbb eax, eax
or eax, 1
test eax, eax
je 0x49381d
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x493800
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493800
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00408d10
jmp 0x4938c4
lea eax, [ebp - 0x28]
push eax
call fcn.00484a00
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
jb 0x493839
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4938bc
push eax
lea ecx, [ebp - 0x58]
call fcn.00408e50
push 0
push 0x4e823c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00416410
cmp eax, 0xffffffff
je 0x4938b4
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041bf60
push 0
push 0x4e823c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00416410
cmp eax, 0xffffffff
je 0x4938ac
push eax
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041bf60
push eax
mov ecx, ebx
call fcn.0040b440
lea ecx, [ebp - 0x70]
call fcn.004074f0
lea ecx, [ebp - 0x40]
call fcn.004074f0
lea ecx, [ebp - 0x58]
call fcn.004074f0
lea ecx, [ebp - 0x28]
call fcn.004074f0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4938e0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00476460
push 0x80070057
call fcn.00476460
int3