Function at 0x409240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4707e9
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4950d4]
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 dword [ebp - 0x45c], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4b0]
call fcn.00416650
push 0x474814
push str.CONFIGURE
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409315
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.004150ce
push esi
mov esi, eax
mov dword [ebp - 0x460], eax
push 0
push esi
call fcn.004572d0
push edi
push ebx
push esi
call fcn.0045f1a0
add esp, 0x1c
lea ecx, [ebp - 0x4b0]
push 0
push 0
push esi
call fcn.00419020
push str.TheConfigure
lea ecx, [ebp - 0x4b0]
call fcn.00417370
mov ebx, eax
mov dword [ebp - 0x454], ebx
test ebx, ebx
jne 0x409363
push esi
call fcn.004150d7
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp ecx, 0x49a1cc
je 0x409338
push ecx
call fcn.004150d7
add esp, 4
lea ecx, [ebp - 0x4b0]
call fcn.00416ab0
mov eax, esi
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.00415020
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004572d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004572d0
add esp, 0x18
mov ecx, ebx
push str.Application
call fcn.004173d0
test eax, eax
je 0x409315
mov ecx, eax
call fcn.00417410
mov ebx, eax
test ebx, ebx
je 0x40955e
mov edi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
add edi, 8
test ecx, ecx
jne 0x4093c2
xor esi, esi
jmp 0x4093d5
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
jne 0x4093cf
xor esi, esi
jmp 0x4093d5
mov esi, dword [eax + 0x20]
add esi, 8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004572d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004572d0
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.004564d9
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004564d9
xor eax, eax
mov dword [ebp - 0x43c], 7
add esp, 0x28
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
cmp word [ebp - 0x218], ax
jne 0x409442
xor ecx, ecx
jmp 0x40945f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409450
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a200
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x4094a0
xor ecx, ecx
jmp 0x4094bf
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4094b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a200
mov eax, dword [ebp - 0x45c]
lea edx, [ebp - 0x450]
push edx
lea edx, [ebp - 0x438]
mov byte [ebp - 4], 2
push edx
mov ecx, dword [eax + 0x4c]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40950f
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0040a300
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x40954d
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.0040a300
mov ecx, ebx
call fcn.00417510
mov ebx, eax
test ebx, ebx
jne 0x4093b1
mov ecx, dword [ebp - 0x454]
push str.ShortcutConfig
call fcn.004173d0
test eax, eax
je 0x409817
mov ecx, eax
call fcn.00417410
mov ebx, eax
mov dword [ebp - 0x454], ebx
test ebx, ebx
je 0x409817
nop dword [eax]
push 8
call fcn.0041508d
add esp, 4
mov dword [ebp - 0x468], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4095b9
mov ecx, eax
call fcn.00408350
mov esi, eax
mov dword [ebp - 0x458], eax
jmp 0x4095c1
xor esi, esi
mov dword [ebp - 0x458], esi
mov ecx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x464], esi
call fcn.00417410
mov ebx, eax
test ebx, ebx
je 0x4097e7
nop dword [eax]
mov edi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
add edi, 8
test ecx, ecx
jne 0x4095f1
xor esi, esi
jmp 0x409604
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
jne 0x4095fe
xor esi, esi
jmp 0x409604
mov esi, dword [eax + 0x20]
add esi, 8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004572d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004572d0
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.004564d9
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004564d9
xor eax, eax
mov dword [ebp - 0x43c], 7
add esp, 0x28
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
cmp word [ebp - 0x218], ax
je 0x409685
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409676
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a200
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x4096c6
xor ecx, ecx
jmp 0x4096df
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4096d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a200
mov esi, dword [ebp - 0x458]
lea ecx, [ebp - 0x450]
push ecx
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x40976d
mov ecx, dword [ebp - 0x438]
inc eax
cmp eax, 0x7fffffff
ja 0x409830
add eax, eax
cmp eax, 0x1000
jb 0x409764
test cl, 0x1f
jne 0x409830
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x409830
sub ecx, eax
cmp ecx, 4
jb 0x409830
cmp ecx, 0x23
ja 0x409830
mov ecx, eax
push ecx
call fcn.0041501b
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x4097d6
mov ecx, dword [ebp - 0x450]
inc eax
cmp eax, 0x7fffffff
ja 0x409830
add eax, eax
cmp eax, 0x1000
jb 0x4097cd
test cl, 0x1f
jne 0x409830
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x409830
sub ecx, eax
cmp ecx, 4
jb 0x409830
cmp ecx, 0x23
ja 0x409830
mov ecx, eax
push ecx
call fcn.0041501b
add esp, 4
mov ecx, ebx
call fcn.00417510
mov ebx, eax
test ebx, ebx
jne 0x4095e0
lea eax, [ebp - 0x464]
push eax
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax + 0x50]
call fcn.0040be30
mov ecx, dword [ebp - 0x454]
call fcn.00417510
mov ebx, eax
mov dword [ebp - 0x454], eax
test ebx, ebx
jne 0x409590
mov eax, dword [ebp - 0x460]
push eax
call fcn.004150d7
add esp, 4
mov esi, 1
jmp 0x409317
call fcn.0045f149
int3