Function at 0x415900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d5b3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x494
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.00413850
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
call fcn.004110d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00415c80
lea ecx, [ebp - 0x450]
call fcn.004110d0
mov byte [ebp - 4], 1
push 0x400
mov eax, dword [ebp + 8]
push eax
call fcn.0042b920
add esp, 8
mov dword [ebp - 0x454], eax
push 2
push 0
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4159a5
call fcn.00415080
mov dword [ebp - 0x30], eax
jmp 0x415b06
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4159cd
call fcn.00415080
mov dword [ebp - 0x30], eax
jmp 0x415b06
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4159f1
call fcn.00415080
mov dword [ebp - 0x30], eax
jmp 0x415b06
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
add eax, 1
cmp eax, dword [ebp - 0x48]
jae 0x415a46
mov dword [ebp - 0x4a4], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.00418c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004187a0
mov eax, dword [ebp - 0x4a4]
jmp 0x415b43
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
add eax, 1
push eax
lea ecx, [ebp - 0x450]
call fcn.00418bf0
jmp 0x415a76
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.004138e0
test eax, eax
jne 0x415a95
mov dword [ebp - 0x30], 0x8007000e
jmp 0x415b06
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x450]
call fcn.004138e0
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
call fcn.00413850
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
jne 0x415ad4
call fcn.00415080
mov dword [ebp - 0x30], eax
jmp 0x415b06
lea ecx, [ebp - 0x450]
call fcn.004138e0
xor ecx, ecx
mov edx, dword [ebp - 0x45c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x450]
call fcn.004138e0
push eax
lea ecx, [ebp - 0x38]
call fcn.00415cb0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x3c], 0
je 0x415b16
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.00418c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004187a0
mov eax, dword [ebp - 0x4a0]
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.004af76a
mov esp, ebp
pop ebp
ret 0x10