Function at 0x4023d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f840
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x434018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x454], ebx
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], 0
je 0x402785
push 0x42b7d4
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x468], eax
test eax, eax
je 0x402785
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402779
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x468]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 3
mov edx, eax
mov ecx, esi
call fcn.0040a357
mov edi, eax
add esp, 8
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x402484
mov esi, dword [ebp - 0x46c]
mov eax, 0x10000
jmp 0x402682
cmp dword [edi], 1
je 0x402499
mov esi, dword [ebp - 0x46c]
mov eax, 0x80000
jmp 0x402682
mov esi, dword [edi + 4]
lea eax, [ebp - 0x118]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebx + 8]
mov dword [ebp - 0x458], esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esi]
test esi, esi
je 0x402652
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024d7
sub ecx, edx
cmp ecx, 0x100
jae 0x402652
cmp dword [esi + 0x18], 0
je 0x402652
mov edi, dword [esi + 0x14]
lea edx, [esi + 0x28]
mov eax, dword [esi + 0x24]
sub esp, 0x10
mov ebx, dword [esi + 0x10]
mov ecx, esi
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
mov dword [ebp - 0x45c], ebx
push 0
push 0
push eax
mov dword [ebp - 0x460], edi
mov dword [esi + 0x10], 0
call fcn.00408f84
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
test eax, eax
jne 0x40264c
nop
sub esp, 0x10
lea eax, [ebp - 0x220]
xor edx, edx
mov ecx, esi
push 0x100
push eax
push 0
call fcn.00408f84
add esp, 0x1c
xor edi, edi
nop
mov dl, byte [ebp + edi - 0x220]
lea edi, [edi + 1]
mov bl, byte [ebp + edi - 0x119]
lea eax, [edx - 0x20]
movzx eax, al
lea ecx, [edx - 0x61]
mov dword [ebp - 0x470], eax
cmp cl, 0x19
mov ecx, dword [ebp - 0x470]
movzx eax, dl
cmova ecx, eax
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x402599
add bl, 0xe0
test cl, cl
je 0x4025a9
test bl, bl
je 0x4025ad
cmp cl, bl
jl 0x4025ad
jle 0x402560
jmp 0x4025ad
test bl, bl
je 0x40261c
cmp dword [esi + 0x18], 0
jne 0x4025ba
mov eax, 0xffffff9c
jmp 0x402600
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
jne 0x4025ca
mov eax, 0xffffff9c
jmp 0x402600
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.00408f84
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
test eax, eax
je 0x402540
mov eax, dword [ebp - 0x45c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x460]
mov dword [esi + 0x14], eax
jmp 0x402652
mov ebx, dword [ebp - 0x458]
cmp dword [ebx + 4], 0xffffffff
je 0x40262f
mov ecx, dword [ebx]
call fcn.00409749
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebx + 4], 0xffffffff
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x450]
push eax
push esi
call fcn.0040997e
jmp 0x402676
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
push 0x22c
lea eax, [ebp - 0x44c]
or esi, 0xffffffff
push 0
push eax
call fcn.0040cc50
add esp, 0xc
mov dword [ebp - 0x450], esi
mov eax, 0x500
mov edi, dword [ebp - 0x464]
mov ebx, dword [ebp - 0x454]
mov dword [0x435fb0], eax
cmp esi, 0xffffffff
je 0x402779
add ebx, 4
lea ecx, [ebp - 0x460]
push str.language_
mov edx, ebx
mov dword [ebp - 0x458], ebx
call fcn.00403600
add esp, 4
mov ecx, dword [eax]
test edi, edi
jne 0x4026c3
mov dword [0x435fb0], 0x10000
jmp 0x40274d
cmp dword [edi], 1
je 0x4026d7
mov dword [0x435fb0], 0x80000
jmp 0x40274d
mov ebx, dword [edi + 4]
lea edi, [ebx + 0x244]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4026e4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402700
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x402737
cmp eax, 0x2f
je 0x402737
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402724
mov eax, dword [0x42b7cc]
mov dword [edi], eax
mov ebx, dword [ebp - 0x458]
mov edi, dword [ebp - 0x464]
mov dword [0x435fb0], 0
mov edx, dword [ebp - 0x460]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40276b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4027a1
mov dword [0x435fb0], 0x10000
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a893
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
je 0x4027b2
mov dword [0x435fb0], 0x80000
jmp 0x402779
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x44c]
push 2
push 0
push eax
push esi
call fcn.00409f9f
mov dword [0x435fb0], eax
test eax, eax
jne 0x402779
push str.tools.ini
mov edx, ebx
lea ecx, [ebp - 0x45c]
call fcn.00403600
add esp, 4
mov dword [ebp - 0x458], eax
mov edi, dword [ebp - 0x454]
xor ebx, ebx
mov dword [ebp - 4], 0
mov edx, dword [edi + 8]
mov esi, dword [edx - 0xc]
lea ecx, [esi - 4]
test ecx, ecx
cmovns ebx, ecx
lea ecx, [edx - 0x10]
cmp ebx, esi
jl 0x40281d
call fcn.00403990
lea esi, [eax + 0x10]
mov edi, esi
jmp 0x4028a8
mov ecx, dword [ecx]
test ecx, ecx
je 0x402854
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x402854
mov eax, dword [edi + 8]
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x402843
test ebx, ebx
jne 0x402906
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x402910
jmp 0x402875
call fcn.00401e10
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x454], eax
test ecx, ecx
je 0x402915
jmp 0x402837
lea esi, [eax + 0x10]
mov edi, esi
test ebx, ebx
js 0x402906
cmp ebx, dword [esi - 8]
jg 0x402906
lea edx, [ebx + ebx]
mov dword [esi - 0xc], ebx
push edx
push dword [ebp - 0x454]
xor eax, eax
mov ecx, esi
mov word [esi + edx], ax
call fcn.00401ac0
add esp, 8
mov eax, dword [ebp - 0x458]
push dword [eax]
push edi
push 0x42b810
push str.UserInformation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4028db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402779
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402779
push 0x80070057
call fcn.00401b90
call fcn.00402190
push 0x80004005
call fcn.00401b90
int3