Function at 0x4026d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x424008]
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 ecx, dword [ebp + 0xc]
mov eax, 0x4248c4
cmp dword [eax], ecx
je 0x402716
add eax, 0x10
cmp eax, 0x424ad4
jl 0x402703
jmp 0x402a49
mov eax, 0x4248b8
nop dword [eax + eax]
cmp dword [eax + 0xc], ecx
je 0x402731
add eax, 0x10
cmp eax, 0x424ac8
jl 0x402720
xor eax, eax
mov eax, dword [eax + 4]
push str.LOCALES
movzx eax, ax
push eax
push dword [0x4257f8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402755
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push dword [0x4257f8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x4257f8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.00407016
add esp, 4
mov dword [ebp - 0x1c], eax
push esi
push 0
push eax
call fcn.00408300
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp - 0x1c]
push eax
push esi
push edi
call fcn.0040d673
add esp, 0x10
test edi, edi
je 0x402a49
lea ecx, [ebp - 0x68]
call fcn.00403c10
mov dword [ebp - 4], 0
mov eax, edi
mov byte [edi + ebx], 0
mov ecx, edi
mov dl, byte [edi]
mov byte [0x424ac8], 0
test dl, dl
je 0x4027ee
inc eax
lea esi, [ecx + 1]
cmp dl, 0xd
jne 0x4027e4
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x4027e6
inc eax
jmp 0x4027e6
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, esi
test dl, dl
jne 0x4027d0
mov byte [ecx], 0
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x68]
push 1
push 0
push edi
call dword [eax + 8]
cmp byte [ebp - 0x3c], 0
jne 0x402a38
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x402822
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x402847
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x402810
xor eax, eax
mov esi, dword [eax + 0x18]
test esi, esi
je 0x402a38
nop
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x402850
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x402830
jmp 0x402a38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
jmp 0x402824
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x402a38
mov eax, dword [ebx + 0x20]
mov ecx, str.data
add eax, 8
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402890
test dl, dl
je 0x40288c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402890
add eax, 2
add ecx, 2
test dl, dl
jne 0x402870
xor eax, eax
jmp 0x402895
sbb eax, eax
or eax, 1
test eax, eax
je 0x4028c7
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x402a26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4028bb
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4028a4
jmp 0x402a26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
jmp 0x402a28
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x402a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4028e9
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4028d2
jmp 0x402a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x402a09
nop dword [eax]
mov ecx, dword [edi + 0x20]
mov edx, str.value
add ecx, 8
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402930
test al, al
je 0x40292c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402930
add ecx, 2
add edx, 2
test al, al
jne 0x402910
xor eax, eax
jmp 0x402935
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4029da
push str.name
lea ecx, [ebx + 0x2c]
call fcn.00404630
test eax, eax
je 0x4029af
mov esi, dword [eax + 0x18]
add esi, 8
je 0x4029af
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402960
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4029a8
lea eax, [ebx + ebx]
call fcn.00419d20
mov edi, esp
test edi, edi
je 0x4029a5
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x14]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [ebp - 0x18]
jmp 0x4029b1
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor esi, esi
jmp 0x4029b1
xor esi, esi
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4029c9
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x4029c9
mov ecx, dword [eax + 0x20]
add ecx, 8
jmp 0x4029cb
xor ecx, ecx
call fcn.00402640
push eax
push esi
push dword [ebp + 8]
call fcn.00402b80
mov esi, dword [edi + 0x28]
test esi, esi
je 0x402a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4029f5
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4029e1
jmp 0x402a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x402900
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x402a26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4028bb
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x402a10
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jne 0x402864
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00406fd3
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.004025a0
lea esp, [ebp - 0x78]
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.00406d71
mov esp, ebp
pop ebp
ret 8