Function at 0x40149c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], str.PROGNUMBER
mov eax, dword [0x4127e0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004013d7
add esp, 4
cmp dword [ebp + 0xc], 1
je 0x4014db
cmp dword [ebp + 0xc], 3
jne 0x4016c0
cmp dword [ebp + 8], 0
je 0x401536
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x401536
mov ecx, dword [ebp + 8]
push ecx
push 0x40b200
call fcn.0040100a
add esp, 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401534
push 0x11b
push 0x40b20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b214
call fcn.0040100a
add esp, 0x10
xor eax, eax
jmp 0x401808
jmp 0x401550
mov eax, dword [0x4127e0]
mov dword [ebp - 0x1c], eax
push 0x4107f4
push 0x40b22c
call fcn.0040100a
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
push 0x40b240
call fcn.0040100a
add esp, 8
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0xa
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4015b3
push 0x128
push 0x40b24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b254
call fcn.0040100a
add esp, 0x10
push str.not_found___zero_size_n
call fcn.0040100a
add esp, 4
mov dword [ebp - 8], 0
jmp 0x401695
push 0x40b284
call fcn.0040100a
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x40b28c
call fcn.0040100a
add esp, 8
cmp dword [ebp - 8], 0x40000000
jbe 0x401603
mov ecx, dword [ebp - 8]
push ecx
push str.too_big__size__u_n
call fcn.0040100a
add esp, 8
xor eax, eax
jmp 0x401808
mov edx, dword [ebp - 0x18]
push edx
push 0x40b2ac
call fcn.0040100a
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401650
push 0x138
push 0x40b2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b2c0
call fcn.0040100a
add esp, 0x10
xor eax, eax
jmp 0x401808
mov edx, dword [ebp - 0x24]
push edx
push 0x40b2d8
call fcn.0040100a
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 8], 4
jae 0x40167d
mov dword [ebp - 0x28], 0
jmp 0x401685
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 8], 0
je 0x4016c0
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x4016c0
mov ecx, dword [ebp + 8]
push ecx
push str.close__s_n
call fcn.0040100a
add esp, 8
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
push eax
call fcn.004013d7
add esp, 4
cmp dword [ebp + 0xc], 2
je 0x4016dc
cmp dword [ebp + 0xc], 3
jne 0x401805
cmp dword [ebp + 8], 0
je 0x401739
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x401739
mov eax, dword [ebp + 8]
push eax
push 0x40b2f0
call fcn.0040100a
add esp, 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401737
push 0x14e
push 0x40b2fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b304
call fcn.0040100a
add esp, 0x10
xor eax, eax
jmp 0x401808
jmp 0x401754
mov edx, dword [0x4127e0]
mov dword [ebp - 0x1c], edx
push 0x4107f4
push str.work_on_myself__s_n
call fcn.0040100a
add esp, 8
cmp dword [ebp + 0xc], 2
jne 0x401760
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 3
jne 0x40176f
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str.update__s__u_n
call fcn.0040100a
add esp, 0xc
push 4
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0xa
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4017c5
push 0x15d
push 0x40b340
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b348
call fcn.0040100a
add esp, 0x10
jmp 0x4017cc
mov dword [ebp - 0xc], 1
cmp dword [ebp + 8], 0
je 0x401805
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x401805
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.close__s__changed__d_n
call fcn.0040100a
add esp, 0xc
xor edx, edx
cmp dword [ebp - 0xc], 0
sete dl
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret