Function at 0x407390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4d0018]
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 eax, ecx
mov dword [ebp - 0x454], eax
lea ebx, [eax + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x407745
push 0x4ac4d4
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x468], eax
test eax, eax
je 0x407745
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407739
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.00411f89
mov edi, eax
add esp, 8
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x407446
mov esi, dword [ebp - 0x46c]
mov eax, 0x10000
jmp 0x40763c
cmp dword [edi], 1
je 0x40745b
mov esi, dword [ebp - 0x46c]
mov eax, 0x80000
jmp 0x40763c
mov esi, dword [edi + 4]
lea eax, [ebp - 0x118]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [ebp - 0x45c], esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esi]
test esi, esi
je 0x407612
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407498
sub ecx, edx
cmp ecx, 0x100
jae 0x407612
cmp dword [esi + 0x18], 0
je 0x407612
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 - 0x460], ebx
push 0
push 0
push eax
mov dword [ebp - 0x458], edi
mov dword [esi + 0x10], 0
call fcn.00410a42
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
test eax, eax
jne 0x40760c
sub esp, 0x10
lea eax, [ebp - 0x220]
xor edx, edx
mov ecx, esi
push 0x100
push eax
push 0
call fcn.00410a42
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 0x407559
add bl, 0xe0
test cl, cl
je 0x407569
test bl, bl
je 0x40756d
cmp cl, bl
jl 0x40756d
jle 0x407520
jmp 0x40756d
test bl, bl
je 0x4075dc
cmp dword [esi + 0x18], 0
jne 0x40757a
mov eax, 0xffffff9c
jmp 0x4075c0
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
jne 0x40758a
mov eax, 0xffffff9c
jmp 0x4075c0
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.00410a42
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
test eax, eax
je 0x407500
mov eax, dword [ebp - 0x460]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x458]
mov dword [esi + 0x14], eax
jmp 0x407612
mov ebx, dword [ebp - 0x45c]
cmp dword [ebx + 4], 0xffffffff
je 0x4075ef
mov ecx, dword [ebx]
call fcn.004112bf
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.004114f4
jmp 0x407636
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.00481670
add esp, 0xc
mov dword [ebp - 0x450], esi
mov eax, 0x500
mov edi, dword [ebp - 0x464]
mov dword [0x4d378c], eax
cmp esi, 0xffffffff
je 0x407739
mov ebx, dword [ebp - 0x454]
lea ecx, [ebp - 0x458]
add ebx, 4
push str.language_
mov edx, ebx
mov dword [ebp - 0x45c], ebx
call fcn.00408530
add esp, 4
mov ecx, dword [eax]
test edi, edi
jne 0x407683
mov dword [0x4d378c], 0x10000
jmp 0x40770d
cmp dword [edi], 1
je 0x407697
mov dword [0x4d378c], 0x80000
jmp 0x40770d
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 0x4076a4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076c0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4076f7
cmp eax, 0x2f
je 0x4076f7
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4076e4
mov eax, dword [0x4ac4cc]
mov dword [edi], eax
mov ebx, dword [ebp - 0x45c]
mov edi, dword [ebp - 0x464]
mov dword [0x4d378c], 0
mov edx, dword [ebp - 0x458]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40772b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x407761
mov dword [0x4d378c], 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.0047ecc2
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
je 0x407772
mov dword [0x4d378c], 0x80000
jmp 0x407739
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x44c]
push 2
push 0
push eax
push esi
call fcn.00411bd1
mov dword [0x4d378c], eax
test eax, eax
jne 0x407739
push str.tools.ini
mov edx, ebx
lea ecx, [ebp - 0x460]
call fcn.00408530
add esp, 4
mov dword [ebp - 0x458], eax
mov edi, dword [ebp - 0x454]
xor ebx, ebx
add edi, 8
mov dword [ebp - 4], 0
mov esi, dword [edi]
mov edx, dword [esi - 0xc]
lea ecx, [edx - 4]
test ecx, ecx
cmovns ebx, ecx
cmp ebx, edx
jl 0x4077e6
push edi
lea ecx, [ebp - 0x45c]
call fcn.00408850
mov esi, dword [ebp - 0x45c]
mov edi, esi
jmp 0x407870
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x40781d
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40781d
mov eax, dword [edi]
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x40780c
test ebx, ebx
jne 0x4078ce
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x4078d8
jmp 0x40783d
call fcn.00406aa0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x454], eax
test ecx, ecx
je 0x4078dd
jmp 0x407800
lea esi, [eax + 0x10]
mov edi, esi
test ebx, ebx
js 0x4078ce
cmp ebx, dword [esi - 8]
jg 0x4078ce
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.004067c0
add esp, 8
mov eax, dword [ebp - 0x458]
push dword [eax]
push edi
push 0x4ac510
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 0x4078a3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x460]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x407739
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407739
push 0x80070057
call fcn.00406890
call fcn.00406fe0
push 0x80004005
call fcn.00406890
int3