Function at 0x421800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5d19d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
call fcn.00401510
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa8], ebp
call fcn.0041b1a0
mov ebx, 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], bl
call fcn.0041b1a0
lea ecx, [esp + 0x44]
mov byte [esp + 0xa8], 2
call fcn.0041b1a0
lea ecx, [esp + 0x50]
mov byte [esp + 0xa8], 3
call fcn.0041b1a0
lea eax, [esi + 0x11c]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0xac], 4
call fcn.00401750
push 0x20
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 5
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
call fcn.00401510
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
push str.Config.xml
mov byte [esp + 0xac], 6
mov word [ecx], bp
lea ecx, [esp + 0x14]
call fcn.00401610
cmp dword [esp + 0x18], ebp
je 0x42192f
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebp
push eax
lea ecx, [esp + 0x30]
mov word [edx], bp
call fcn.004018e0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], ebp
push 0x2e
mov word [ecx], bp
lea ecx, [esp + 0x30]
call fcn.004015e0
cmp eax, ebp
jle 0x421949
lea edx, [esp + 0x38]
inc eax
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00401350
jmp 0x421949
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], ebp
mov word [eax], bp
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], ebp
mov word [ecx], bp
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x20]
mov dword [esp + 0x58], ebp
push eax
lea ecx, [esp + 0x54]
mov word [edx], bp
call fcn.004018e0
push 0x3a
lea ecx, [esp + 0x54]
call fcn.00405b40
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x54]
call fcn.004018e0
mov edx, dword [esp + 0x2c]
cmp word [edx], bp
je 0x42199d
push 0x5c
lea ecx, [esp + 0x54]
call fcn.00405b40
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x50]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0x50]
lea edi, [esi + 0xd8]
push ecx
mov ecx, edi
call fcn.00593560
test eax, eax
je 0x421a23
lea edx, [esp + 0x60]
mov ecx, edi
push edx
call fcn.005938f0
lea eax, [esp + 0x60]
push str.smartcarve
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x421a23
push str.value
mov ecx, esi
call fcn.00426a60
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x54]
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x4c]
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x3c]
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x34]
push eax
call fcn.005b44c3
add esp, 0x18
jmp 0x421af6
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x409
mov esi, eax
push str.CONFIG
push 0x6380c0
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x5c]
push esi
push eax
lea esi, [ecx + 0xd8]
mov ecx, esi
call fcn.00593730
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
push edx
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x54]
call fcn.00405b40
lea eax, [esp + 0x44]
lea ecx, [esp + 0x50]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0x2c]
cmp word [ecx], bp
je 0x421abb
push 0x5c
lea ecx, [esp + 0x54]
call fcn.00405b40
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
call fcn.004018e0
mov eax, dword [esp + 0x50]
mov ecx, esi
push eax
call fcn.00593640
mov ecx, dword [esp + 0x5c]
push str.value
call fcn.00426a60
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005b44c3
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004012d0
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret