Function at 0x412120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439380
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x449af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
movzx eax, word [ebp + 8]
push 0x440cc0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x412195
call fcn.0040f8f0
push 0x43f458
push 0x440cc8
call fcn.0040f9c0
add esp, 8
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 esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4121b3
call fcn.0040f8f0
push 0x43f458
push 0x440cdc
jmp 0x412179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4121d1
call fcn.0040f8f0
push 0x43f458
push 0x440cf4
jmp 0x412179
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], eax
call fcn.00413163
mov byte [ebp - 4], 1
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412203
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.0040f570
add esp, 4
push str.TempUpgrade_
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.004039e0
add esp, 0xc
mov bl, 4
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.0040e700
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00402000
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41227d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
push 0
push 0x1002
push esi
lea ecx, [ebp - 0x34]
call fcn.00413534
test eax, eax
je 0x412323
mov ecx, dword [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00412dc1
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x43f1fc
call fcn.00403ce0
push ecx
mov edx, esp
mov dword [ebp - 0x20], esp
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0041e9e2
mov byte [ebp - 4], 2
call fcn.0040fb30
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00413101
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00413237
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