Function at 0x4125b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439930
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x44aaf0]
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 0x442708
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x412625
call fcn.0040fd40
push 0x43f458
push 0x442710
call fcn.0040fe10
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 0x412643
call fcn.0040fd40
push 0x43f458
push 0x442724
jmp 0x412609
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x412661
call fcn.0040fd40
push 0x43f458
push 0x44273c
jmp 0x412609
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], eax
call fcn.004135f3
mov byte [ebp - 4], 1
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412693
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.0040f9c0
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.0040eb50
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 0x41270d
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 0x412730
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 0x412753
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.004139c4
test eax, eax
je 0x4127b3
mov ecx, dword [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00413251
call fcn.0040fd40
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.0041eeb7
mov byte [ebp - 4], 2
call fcn.0040ff80
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00413591
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 0x4127d3
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.004136c7
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