Function at 0x407cb0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a01e0
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4d3040]
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 0x408191
push 0x4ac5ec
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x46c], eax
test eax, eax
je 0x408191
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408185
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x46c]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 3
mov edx, eax
mov ecx, esi
call fcn.00413a5f
mov edi, eax
add esp, 8
mov dword [ebp - 0x460], edi
test edi, edi
jne 0x407d64
mov esi, dword [ebp - 0x470]
mov eax, 0x10000
jmp 0x408096
cmp dword [edi], 1
je 0x407d79
mov esi, dword [ebp - 0x470]
mov eax, 0x80000
jmp 0x408096
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 - 0x45c], esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esi]
test esi, esi
je 0x408066
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407db7
sub ecx, edx
cmp ecx, 0x100
jae 0x408066
cmp dword [esi + 0x18], 0
je 0x408066
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x28]
sub esp, 0x10
mov dword [ebp - 0x464], eax
mov eax, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 0x468], eax
mov eax, dword [esi + 0x24]
push 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push eax
mov dword [esi + 0x10], 0
call fcn.00412512
xor ecx, ecx
mov edx, eax
add esp, 0x1c
test edx, edx
sete cl
mov dword [esi + 0x18], ecx
test edx, edx
jne 0x407ee4
sub esp, 0x10
lea eax, [ebp - 0x220]
xor edx, edx
mov ecx, esi
push 0x100
push eax
push 0
call fcn.00412512
add esp, 0x1c
xor edi, edi
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 - 0x458], eax
cmp cl, 0x19
mov ecx, dword [ebp - 0x458]
movzx eax, dl
cmova ecx, eax
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x407e79
add bl, 0xe0
test cl, cl
je 0x407e89
test bl, bl
je 0x407e8d
cmp cl, bl
jl 0x407e8d
jle 0x407e40
jmp 0x407e8d
test bl, bl
je 0x407efe
cmp dword [esi + 0x18], 0
je 0x408054
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x40804a
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.00412512
mov edx, eax
add esp, 0x1c
xor eax, eax
test edx, edx
sete al
mov dword [esi + 0x18], eax
test edx, edx
je 0x407e21
mov eax, dword [ebp - 0x464]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x468]
mov dword [esi + 0x14], eax
test edx, edx
jne 0x408066
mov edi, dword [ebp - 0x45c]
cmp dword [edi + 4], 0xffffffff
je 0x40802d
mov eax, dword [edi]
mov dword [ebp - 0x458], eax
test eax, eax
je 0x40802d
mov ebx, dword [eax + 0x7c]
test ebx, ebx
je 0x40802d
mov eax, dword [ebx]
test eax, eax
je 0x407f38
push eax
call fcn.004886fc
add esp, 4
cmp dword [ebx + 0x40], 0
mov dword [ebx], 0
je 0x408010
lea esi, [ebx + 4]
test esi, esi
je 0x408010
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x40800a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40800a
mov edi, dword [edi + 0x14]
test edi, edi
je 0x407ff5
mov ecx, dword [edi]
cmp ecx, 4
je 0x407f80
cmp ecx, 5
jne 0x407f8e
push dword [edi + 0xc]
push dword [esi + 0x28]
call eax
mov eax, dword [esi + 0x24]
add esp, 8
cmp dword [edi], 6
jne 0x407f9e
push dword [edi + 4]
push dword [esi + 0x28]
call eax
add esp, 8
mov eax, dword [edi + 0x28]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x38]
mov dword [edi], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
test eax, eax
je 0x407fd3
push 0
push 0
push 0
call eax
mov dword [edi + 0x3c], eax
add esp, 0xc
mov dword [esi + 0x30], eax
push dword [edi + 0x28]
mov eax, dword [esi + 0x24]
push dword [esi + 0x28]
call eax
push dword [edi + 0x24]
mov eax, dword [esi + 0x24]
push dword [esi + 0x28]
call eax
mov eax, dword [esi + 0x24]
push edi
push dword [esi + 0x28]
call eax
add esp, 0x18
push dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
push dword [esi + 0x28]
call eax
add esp, 8
mov dword [esi + 0x1c], 0
mov edi, dword [ebp - 0x45c]
push ebx
mov dword [ebx + 0x40], 0
call fcn.004886fc
mov eax, dword [ebp - 0x458]
add esp, 4
mov dword [eax + 0x7c], 0
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 4], 0xffffffff
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x450]
push eax
push esi
call fcn.00412f9e
jmp 0x40808a
mov edx, 0xffffff9c
jmp 0x407ee4
mov eax, dword [ebp - 0x464]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x468]
mov dword [esi + 0x14], eax
push 0x22c
lea eax, [ebp - 0x44c]
or esi, 0xffffffff
push 0
push eax
call fcn.00484a20
add esp, 0xc
mov dword [ebp - 0x450], esi
mov eax, 0x500
mov edi, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x454]
mov dword [0x4d67ec], eax
cmp esi, 0xffffffff
je 0x408185
push str.language_
lea edx, [ebx + 4]
lea ecx, [ebp - 0x458]
call fcn.00409860
add esp, 4
mov ecx, dword [eax]
test edi, edi
jne 0x4080cf
mov dword [0x4d67ec], 0x10000
jmp 0x408157
cmp dword [edi], 1
je 0x4080e0
mov dword [0x4d67ec], 0x80000
jmp 0x408157
mov ebx, dword [edi + 4]
lea edi, [ebx + 0x244]
mov edx, edi
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4080f0
lea ecx, [ebx + 0x244]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408110
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x408147
cmp eax, 0x2f
je 0x408147
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x408134
mov eax, dword [0x4ac5e8]
mov dword [edi], eax
mov edi, dword [ebp - 0x460]
mov dword [0x4d67ec], 0
mov edx, dword [ebp - 0x458]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408177
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4081ad
mov dword [0x4d67ec], 0x10000
push dword [ebp - 0x46c]
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.004820f4
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
je 0x4081be
mov dword [0x4d67ec], 0x80000
jmp 0x408185
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x44c]
push 2
push 0
push eax
push esi
call fcn.00413686
mov dword [0x4d67ec], eax
test eax, eax
jne 0x408185
mov esi, dword [ebp - 0x454]
lea ecx, [ebp - 0x460]
push str.tools.ini
lea edx, [esi + 4]
call fcn.00409860
add esp, 4
mov dword [ebp - 0x458], eax
mov dword [ebp - 4], 0
xor edi, edi
mov edx, dword [esi + 8]
mov esi, dword [edx - 0xc]
lea ecx, [esi - 4]
test ecx, ecx
cmovns edi, ecx
lea ecx, [edx - 0x10]
cmp edi, esi
jl 0x408228
call fcn.00407720
lea esi, [eax + 0x10]
jmp 0x4082ec
mov ecx, dword [ecx]
test ecx, ecx
je 0x408267
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x408267
mov eax, dword [ebp - 0x454]
mov edx, dword [eax + 8]
mov eax, edx
mov dword [ebp - 0x454], edx
test eax, eax
jne 0x408256
test edi, edi
jne 0x408347
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x408351
jmp 0x40828e
call fcn.00407220
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x454]
mov eax, dword [eax + 8]
mov dword [ebp - 0x454], eax
test ecx, ecx
je 0x408356
jmp 0x40824a
lea esi, [eax + 0x10]
test edi, edi
js 0x408347
cmp edi, dword [esi - 8]
jg 0x408347
mov dword [esi - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + esi], ax
test edi, edi
je 0x4082ec
mov eax, dword [ebp - 0x454]
push edi
test eax, eax
je 0x4082c8
push eax
push esi
call fcn.004844a0
add esp, 0xc
jmp 0x4082ec
push 0
push esi
call fcn.00484a20
add esp, 0xc
cmp dword [ebp - 0x454], 0
jne 0x4082ec
call fcn.0048d6f4
mov dword [eax], 0x16
call fcn.0048d4ef
mov eax, dword [ebp - 0x458]
push dword [eax]
push esi
push 0x4ac628
push str.UserInformation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40831c
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 0x408185
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408185
push 0x80070057
call fcn.00406f60
call fcn.00407800
push 0x80004005
call fcn.00406f60
int3