Function at 0x5981e598
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5981e968
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, ebx
call sub.rtl120.bpl__System_FindResourceHInstance_qqrui
mov esi, eax
mov eax, esi
call fcn.5981e488
test eax, eax
je 0x5981e5ed
mov ebx, esi
jmp 0x5981e5f4
mov eax, ebx
call fcn.5981e488
test eax, eax
je 0x5981e93d
push eax
push ebx
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x5981e93d
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [0x598579d4]
call sub.rtl120.bpl__System__PCharLen_qqrpc
push eax
push 0
push 0
push 0x7fffffff
mov eax, dword [0x598579d4]
call sub.rtl120.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov esi, dword [sym.imp.madBasic_.bpl__Madstrings_PosPCharA]
mov esi, dword [esi]
mov edx, dword [0x598579d4]
mov eax, ebx
call esi
test eax, eax
jne 0x5981e93d
mov eax, dword [0x598579d4]
call sub.rtl120.bpl__System__PCharLen_qqrpc
add ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x93
mov eax, dword [ebp - 0xc]
imul eax, dword [eax], 0xe
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call sym.madExcept_.bpl__Madexcept_HideLeak_qqrpv
jmp 0x5981e934
movzx esi, byte [ebx]
lea edi, [ebx + 1]
test esi, esi
je 0x5981e93d
movzx eax, byte [ebx]
inc eax
inc eax
add ebx, eax
mov eax, ebx
dec eax
movzx eax, byte [eax]
cmp eax, 0x14
ja case.0x5981e6a4.1
jmp dword [eax*4 + 0x5981e6ab]
push edi
push esi
push 1
push 0
movsx eax, byte [ebx]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
inc ebx
jmp 0x5981e934
push edi
push esi
push 1
push 0
movsx eax, word [ebx]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
add ebx, 2
jmp 0x5981e934
push edi
push esi
push 1
push 0
mov eax, dword [ebx]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
add ebx, 4
jmp 0x5981e934
push 0
movzx ecx, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push edi
push esi
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
movzx eax, byte [ebx]
inc eax
add ebx, eax
jmp 0x5981e934
push 0
movzx ecx, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call sub.madBasic_.bpl__Madstrings_DecodeUtf8_qqrx27System__AnsiStringT_us_i0__
push edi
push esi
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
movzx eax, byte [ebx]
inc eax
add ebx, eax
jmp 0x5981e934
push edi
push esi
push 2
mov eax, ebx
dec eax
cmp byte [eax], 9
sete al
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
jmp 0x5981e934
push 0
mov ecx, dword [ebx]
lea edx, [ebx + 4]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push edi
push esi
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
mov eax, dword [ebx]
add eax, 4
add ebx, eax
jmp 0x5981e934
mov edx, dword [ebx]
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
add ebx, 4
cmp dword [ebp - 4], 0
je 0x5981e87c
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
push eax
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov edx, eax
mov eax, ebx
pop ecx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
push edi
push esi
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add ebx, eax
jmp 0x5981e934
push 0
mov ecx, dword [ebx]
lea edx, [ebx + 4]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call sub.madBasic_.bpl__Madstrings_DecodeUtf8_qqrx27System__AnsiStringT_us_i0__
push edi
push esi
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.5981e4a4
mov eax, dword [ebx]
add eax, 4
add ebx, eax
jmp 0x5981e934
push 0
push 0x5981e97c
push 0x5981e994
lea eax, [ebp - 0x1c]
push eax
dec ebx
movzx eax, byte [ebx]
mov cl, 0x30
mov edx, 1
call sub.madBasic_.bpl__Madstrings_IntToHexExA_qqruiic
push dword [ebp - 0x1c]
push 0x5981e9cc
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl120.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
call sub.user32.dll_MessageBoxA
jmp 0x5981e93d
cmp byte [ebx], 0
jne 0x5981e680
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981e96f
lea eax, [ebp - 0x1c]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret