Function at 0x55f5c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f487f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x55f697
mov edi, dword [esi + 0xc]
push str.XML_FILE
push 0x2134
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x55f697
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x55f697
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x55f697
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x55f697
push 0x48
call fcn.0050ed1e
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x55f65c
mov ecx, eax
call fcn.00458450
mov ecx, eax
jmp 0x55f65e
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], ecx
test ecx, ecx
je 0x55f690
mov eax, dword [ecx]
push 1
push 0
push ebx
call dword [eax + 8]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x2c], 0
je 0x55f690
test ecx, ecx
je 0x55f690
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x55f6e4
cmp dword [esi + 8], 0
je 0x55f6e4
call fcn.00457930
test eax, eax
je 0x55f6e4
mov ecx, eax
call fcn.00457930
mov ebx, eax
test ebx, ebx
je 0x55f6e4
push dword [ebp + 8]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0
call fcn.00561250
test eax, eax
jne 0x55f6fa
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x55f6e4
push eax
call fcn.0050edcc
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x55f976
cmp dword [ebx + 0x14], 1
jne 0x55f962
mov edi, dword [ebx + 0x20]
add edi, 8
je 0x55f962
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x14], eax
push ecx
push 0
push eax
call fcn.0058c8f0
add esp, 0x10
push esi
mov esi, dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
je 0x55f962
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x60a6a0
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0050f771
push esi
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.0058c8f0
add esp, 0x10
push 0
push 0
push edi
mov edi, dword [ebp - 0x18]
push edi
push 0xffffffffffffffff
push 0x60a6a0
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test edi, edi
je 0x55f957
push edi
mov ecx, ebx
call fcn.00457e20
mov edi, eax
test edi, edi
je 0x55f94c
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
lea ecx, [esi*2 + 2]
mov dword [ebp + 8], eax
push ecx
push 0
push eax
call fcn.0058c8f0
add esp, 0x10
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 8]
test edi, edi
je 0x55f94c
mov esi, dword [ebp - 0x14]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x55f860
sub ecx, edx
sar ecx, 1
je 0x55f943
mov ecx, esi
mov eax, str.CONTROL
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55f8a6
test dx, dx
je 0x55f8a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55f8a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x55f880
xor eax, eax
jmp 0x55f8ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55f943
mov ecx, dword [ebp - 0x10]
mov edx, edi
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x55f8c0
sub edx, esi
mov eax, 0
sar edx, 1
mov edx, edi
cmove edx, eax
test ecx, ecx
je 0x55f8fc
mov esi, ecx
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x55f8e2
sub esi, edi
mov eax, 0
mov edi, dword [ebp + 8]
sar esi, 1
cmove ecx, eax
test edx, edx
je 0x55f935
test ecx, ecx
je 0x55f943
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x55f92c
test ax, ax
je 0x55f926
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x55f92c
add ecx, 4
add edx, 4
test ax, ax
jne 0x55f904
xor eax, eax
test eax, eax
jmp 0x55f937
sbb eax, eax
or eax, 1
test eax, eax
jmp 0x55f937
test ecx, ecx
jne 0x55f943
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
push edi
call fcn.0050edcc
add esp, 4
push dword [ebp - 0x18]
call fcn.0050edcc
add esp, 4
push dword [ebp - 0x14]
call fcn.0050edcc
add esp, 4
mov ecx, ebx
call fcn.004579a0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
test ebx, ebx
jne 0x55f702
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x55f986
push ecx
call fcn.0050edcc
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4