Function at 0x418170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490813
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x594
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x5a4]
mov ecx, 0x165
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4abc14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
call fcn.00406630
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x58]
call fcn.00431180
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x74]
call fcn.004185f0
lea ecx, [ebp - 0x4bc]
call fcn.00431180
mov byte [ebp - 4], 1
push 0x400
mov eax, dword [ebp + 8]
push eax
call fcn.0041e7b0
add esp, 8
mov dword [ebp - 0x4c8], eax
mov esi, esp
push 2
push 0
mov eax, dword [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x418232
call fcn.004160b0
mov dword [ebp - 0x64], eax
jmp 0x4183b5
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x418269
call fcn.004160b0
mov dword [ebp - 0x64], eax
jmp 0x4183b5
mov esi, esp
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x41829f
call fcn.004160b0
mov dword [ebp - 0x64], eax
jmp 0x4183b5
mov esi, esp
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa4]
add eax, 1
cmp eax, dword [ebp - 0xa4]
jae 0x4182e8
mov dword [ebp - 0x64], 0x8007000e
jmp 0x4183b5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa4]
add eax, 1
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00427500
jmp 0x418310
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4bc]
call fcn.00431080
test eax, eax
jne 0x418332
mov dword [ebp - 0x64], 0x8007000e
jmp 0x4183b5
mov esi, esp
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00431080
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
push 0
call fcn.00406630
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0x4d4], eax
cmp dword [ebp - 0x4d4], 0
jne 0x418383
call fcn.004160b0
mov dword [ebp - 0x64], eax
jmp 0x4183b5
lea ecx, [ebp - 0x4bc]
call fcn.00431080
xor ecx, ecx
mov edx, dword [ebp - 0x4d4]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00431080
push eax
lea ecx, [ebp - 0x74]
call fcn.00418640
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x80], 0
je 0x4183ce
mov esi, esp
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.004744d2
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5a0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4bc]
call fcn.004274b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00426eb0
mov eax, dword [ebp - 0x5a0]
push edx
mov ecx, ebp
push eax
lea edx, [0x418438]
call fcn.004744f5
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004744c3
add esp, 0x5a4
cmp ebp, esp
call fcn.004744d2
mov esp, ebp
pop ebp
ret 0x10