Function at 0x401889
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x20
mov eax, 0x41300f
call fcn.004040e1
push 0x414308
lea ecx, [ebp - 0x10]
call fcn.00401807
push dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004025b0
pop ecx
test eax, eax
je 0x401b0b
mov esi, 0x41908c
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401328
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401328
push 0x414304
push 0x64
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4019b1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402ca0
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004030f0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402b20
mov edi, 0x414300
push edi
push esi
mov dword [ebp - 0x14], eax
call fcn.004037c0
push str.distcode
push esi
mov dword [ebp - 0x20], eax
call fcn.004037c0
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x40196d
mov al, byte [esi]
cmp al, bl
je 0x401971
cmp dword [ebp - 0x14], ebx
jbe 0x401971
cmp al, 0x7c
jne 0x40195b
mov byte [esi], bl
cmp byte [esi], 0xd
jne 0x401962
mov byte [esi], bl
cmp byte [esi], 0xa
jne 0x401969
mov byte [esi], bl
inc esi
dec dword [ebp - 0x14]
cmp esi, ebx
jne 0x40194a
cmp dword [ebp - 0x20], ebx
je 0x401989
push edi
call fcn.00404160
add eax, dword [ebp - 0x20]
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004016b3
cmp dword [ebp - 0x24], ebx
je 0x4019a5
push str.distcode
call fcn.00404160
add eax, dword [ebp - 0x24]
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004016b3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402c80
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x4142f0
push eax
call fcn.004016ff
add esp, 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.004015b4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040116b
push 0x4142e4
lea ecx, [ebp - 0x20]
call fcn.00401848
push eax
lea eax, [ebp - 0x24]
push str.version
push eax
mov byte [ebp - 4], 5
call fcn.004016ff
add esp, 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.004015b4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040116b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040116b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push 0x4142b8
push eax
call fcn.004016ff
add esp, 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.004015b4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040116b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push str.li
push eax
call fcn.004016ff
add esp, 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.004015b4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040116b
lea eax, [ebp - 0x20]
push eax
call fcn.004029f5
push eax
lea eax, [ebp - 0x24]
push 0x4142a0
push eax
mov byte [ebp - 4], 9
call fcn.004016ff
add esp, 0x10
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xa
call fcn.004015b4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040116b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040116b
push dword [ebp - 0x10]
call fcn.004023a0
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040116b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040116b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040116b
call fcn.0040414a
ret