Function at 0x5c5b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xc8]
push ebp
push esi
mov esi, dword [esp + 0xcc]
push edi
push ebx
push esi
call fcn.005c55c0
add esp, 8
lea eax, [esp + 0x42]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
push esi
call fcn.005c5610
test eax, eax
jne 0x5c619e
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
inc eax
lea edi, [edx + 1]
push 0x280
push 0x40
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x5c619e
mov ecx, dword [esp + 0xd0]
push ebx
push ecx
call fcn.005c53a0
test eax, eax
jne 0x5c6197
mov edx, dword [esp + 0xd0]
push ebx
push edx
call fcn.005c5570
test eax, eax
je 0x5c5be3
mov eax, dword [esp + 0xd0]
push ebx
push eax
jmp 0x5c6192
mov edx, dword [esp + 0x38]
mov ecx, 2
and edx, 0xffff
mov dword [esp + 0x2c], ecx
lea eax, [edx - 1]
cmp eax, 4
ja case.default.0x5c5c02
jmp dword [eax*4 + 0x5c61b0]
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0xfd
jmp 0x5c5d4a
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0xf9
jmp 0x5c5d4a
mov edx, dword [esp + 0xd8]
mov eax, 9
test edx, edx
jne 0x5c5c7f
cmp di, 0x28
ja 0x5c5c5a
cmp si, ax
jbe 0x5c5c7f
mov dword [esp + 0x20], 0xe0
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], 0xf9
mov dword [esp + 0x2c], 1
jmp 0x5c5d4a
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0xfd
jmp 0x5c5d42
mov ecx, dword [esp + 0xd8]
mov eax, 9
test ecx, ecx
jne 0x5c5d1e
cmp si, ax
jbe 0x5c5d1e
mov dword [esp + 0x20], 0xe0
mov dword [esp + 0x14], eax
jmp 0x5c5d0c
mov ecx, dword [esp + 0xd8]
mov eax, 9
test ecx, ecx
jne 0x5c5d1e
cmp si, ax
ja 0x5c5ce2
cmp di, 0x50
jbe 0x5c5d1e
cmp si, 0x12
ja 0x5c5cfc
cmp di, 0x50
ja 0x5c5cfc
mov dword [esp + 0x20], 0xe0
mov dword [esp + 0x14], eax
jmp 0x5c5d0c
mov dword [esp + 0x20], 0x1c0
mov dword [esp + 0x14], 0x12
mov dword [esp + 0x10], 0xf0
mov dword [esp + 0x2c], 1
jmp 0x5c5d4a
mov dword [esp + 0x1c], 0x50
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0xf9
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x3c]
push eax
push esi
push edi
push ebx
push ecx
call fcn.005c5820
lea edx, [esp + 0x3c]
push edx
push esi
mov esi, dword [esp + 0xd8]
push edi
push ebx
push esi
call fcn.005c5820
test eax, eax
je 0x5c5d7f
push ebx
push esi
jmp 0x5c6192
mov esi, dword [esp + 0xdc]
mov al, bl
add al, 0x41
movsx ecx, al
push ecx
push 0
push 0x25b
mov word [esi + 0xebe], bx
call fcn.005be950
add esp, 8
lea edx, [esp + 0x50]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x64]
push 0x64
push eax
call fcn.005b6930
add esp, 0x20
xor eax, eax
test di, di
mov dword [esp + 0x28], eax
jbe 0x5c5eaf
and edi, 0xffff
dec edi
mov dword [esp + 0x30], edi
jmp 0x5c5de5
mov eax, dword [esp + 0x28]
mov edi, eax
mov word [esi + 0xec2], ax
and edi, 0xffff
push edi
push 0
push 0x25c
call fcn.005be950
add esp, 8
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x3c]
push edi
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.005b6ab0
add esp, 0x18
test eax, eax
jne 0x5c5bd5
xor edi, edi
cmp word [esp + 0x24], di
jbe 0x5c5e9b
mov word [esi + 0xec0], di
mov esi, 3
mov eax, 1
test eax, eax
je 0x5c5e80
cmp eax, 3
je 0x5c5e80
cmp eax, 6
je 0x5c5e80
cmp eax, 0x80
je 0x5c5e80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push ebp
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push eax
push edi
push ebx
push ecx
call fcn.005c58c0
dec esi
test esi, esi
jg 0x5c5e45
jmp 0x5c5e84
test esi, esi
jg 0x5c5e8c
test eax, eax
jne 0x5c5f91
mov esi, dword [esp + 0xdc]
inc edi
cmp di, word [esp + 0x24]
jb 0x5c5e34
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [esp + 0x1c]
mov dword [esp + 0x28], eax
jb 0x5c5de1
push 0
push 0
push 0
push 0x25e
call fcn.005be950
add esp, 8
push eax
call fcn.005b6ab0
mov ecx, dword [0x6d9dc0]
add esp, 0xc
push str.bootsector
push str.BOOTSECTOR
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5c5bd5
mov edx, dword [0x6d9dc0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
je 0x5c6171
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5c615a
mov esi, eax
mov eax, dword [esp + 0x30]
mov ecx, 0x80
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp + 0x20], 0
mov cl, byte [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov byte [ebp + 0xd], cl
mov ecx, eax
mov dx, word [esp + 0x20]
imul ecx, edi
imul ecx, dword [esp + 0x1c]
mov word [ebp + 0x11], dx
mov dl, byte [esp + 0x10]
mov word [ebp + 0x13], cx
mov cx, word [esp + 0x14]
mov byte [ebp + 0x15], dl
mov word [ebp + 0x16], cx
mov word [ebp + 0x18], di
mov word [ebp + 0x1a], ax
call fcn.005bd040
mov esi, dword [esp + 0xd0]
push ebx
push esi
mov dword [ebp + 0x27], eax
call fcn.005c5570
test eax, eax
je 0x5c5f9f
push ebx
push esi
jmp 0x5c6192
mov edx, dword [esp + 0xd0]
push ebx
push edx
jmp 0x5c6192
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebp
push edi
push edx
push eax
push 1
push ebx
push esi
call fcn.005c5980
test eax, eax
je 0x5c5fbf
push ebx
push esi
jmp 0x5c6192
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
call fcn.005c5610
test eax, eax
jne 0x5c619e
mov edx, dword [esp + 0x18]
mov ecx, 0x80
mov edi, ebp
push ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov cl, byte [esp + 0x14]
or al, 0xff
push edx
mov byte [ebp + 1], al
mov byte [ebp + 2], al
mov eax, dword [esp + 0x2c]
push edi
push eax
push 2
push ebx
push esi
mov byte [ebp], cl
call fcn.005c59e0
test eax, eax
je 0x5c6014
push ebx
push esi
jmp 0x5c6192
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ebp
push ecx
push edi
add eax, 2
push edx
push eax
push ebx
push esi
call fcn.005c59e0
test eax, eax
je 0x5c603a
push ebx
push esi
jmp 0x5c6192
mov ecx, dword [esp + 0x14]
mov byte [ebp], 0
cmp cx, 1
mov byte [ebp + 1], 0
mov byte [ebp + 2], 0
mov dword [esp + 0x10], 1
jbe 0x5c60b7
add ecx, 3
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ebp
push ecx
push edi
add eax, 2
push edx
push eax
push ebx
push esi
call fcn.005c59e0
test eax, eax
jne 0x5c6033
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebp
push ecx
push edi
push edx
push eax
push ebx
push esi
call fcn.005c59e0
test eax, eax
jne 0x5c6033
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc eax
inc edx
cmp ax, word [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], edx
jb 0x5c605f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea edx, [ecx + ecx + 2]
and eax, 0xffff
mov dword [esp + 0x10], edx
shl eax, 5
cdq
and edx, 0x1ff
and ecx, 0xffff
add eax, edx
sar eax, 9
lea ecx, [eax + ecx*2 + 2]
mov eax, dword [esp + 0x10]
and eax, 0xffff
mov dword [esp + 0x30], ecx
cmp eax, ecx
jge 0x5c6128
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push ebp
push ecx
push edi
push edx
push eax
push ebx
push esi
call fcn.005c59e0
test eax, eax
jne 0x5c6033
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x10], eax
and eax, 0xffff
cmp eax, ecx
jl 0x5c60f2
push ebx
push esi
call fcn.005c5440
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
call fcn.005c5610
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0xbc
ret 0x10
mov ecx, dword [esp + 0xd0]
push ebx
push ecx
call fcn.005c5440
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x5c6197
mov edx, dword [esp + 0xd0]
push ebx
push edx
call fcn.005c5440
push 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x5c6197
mov ecx, dword [esp + 0xd0]
push ebx
push ecx
call fcn.005c5440
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbc
ret 0x10