Function at 0x506700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5475af
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5d3b14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 8]
test esi, esi
je 0x50693b
test ebx, ebx
je 0x50693b
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
mov dword [ebp - 0x20], 0x5dba38
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0x5dba38
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5dba50]
mov dword [esi + 8], eax
mov byte [ebp - 0x1c], 1
mov dword [0x5dba50], esi
mov dword [ebp - 4], 0xffffffff
push 0x5dba38
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x5d44e8
push 0x5d4460
push 0
push ebx
mov byte [ebp - 0x1c], 0
call fcn.00515fc0
add esp, 0x14
call dword [0x555624]
mov edi, eax
call fcn.004372b0
push 5
push 0x1b6c
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x50687d
push 0xf0
push 0x1b6c
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x5067ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x50686a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x50686a
push dword [ebp - 0x10]
push eax
call fcn.0046fff0
add esp, 8
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
push 0x4703c0
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x50684e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x506872
test eax, eax
je 0x506872
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x506872
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x50687d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x506924
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
jns 0x506924
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x506924
mov eax, dword [ebx + 0x20]
mov edi, dword [eax + 0xc]
mov eax, dword [edi + ebx + 0x20]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55604c]
lea ecx, [ebx + 0x20]
add ecx, edi
call esi
push dword [ebx + 4]
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call dword [0x555628]
add esp, 8
mov dword [ebp - 4], 1
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call dword [0x55566c]
mov byte [ebp - 4], 2
mov ecx, eax
call dword [0x55533c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call dword [0x555348]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call dword [0x555348]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc0000005
call fcn.00430780
int3