Function at 0x403990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x44c631
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x466720]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466720]
xor eax, esp
push eax
lea eax, [esp + 0x4bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4cc]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], eax
call fcn.00446920
xor ebx, ebx
mov dword [esp + 0x4c4], ebx
mov ecx, dword [0x46d920]
mov eax, dword [ecx]
push 0x459af4
push str.CONFIGURE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x403a41
mov dword [esp + 0x4c4], 0xffffffff
mov eax, dword [esp + 0x90]
cmp eax, 0x46d880
mov dword [esp + 0x5c], vtable.TiXmlDocument.0
je 0x403a31
push eax
call fcn.0040f819
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.004465b0
xor eax, eax
jmp 0x403ce7
mov edx, dword [0x46d920]
mov eax, dword [edx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
mov eax, dword [0x46d920]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea ebp, [edi + 1]
push ebp
call fcn.0040f81e
push ebp
mov esi, eax
push ebx
push esi
mov dword [esp + 0x30], esi
call fcn.00431f40
mov ecx, dword [esp + 0x28]
push edi
push ecx
push esi
call fcn.00430060
add esp, 0x1c
push ebx
push ebx
push esi
lea ecx, [esp + 0x68]
call fcn.00448c10
push str.TheConfigure
lea ecx, [esp + 0x60]
call fcn.00445eb0
mov edi, eax
cmp edi, ebx
jne 0x403ac1
push esi
call fcn.0040f819
add esp, 4
jmp 0x403a07
push 0x206
lea edx, [esp + 0x2b2]
push ebx
push edx
mov word [esp + 0x2b8], bx
call fcn.00431f40
push 0x206
lea eax, [esp + 0xb6]
push ebx
push eax
mov word [esp + 0xbc], bx
call fcn.00431f40
add esp, 0x18
push str.Application
mov ecx, edi
call fcn.00445f80
cmp eax, ebx
je 0x403a07
mov ecx, eax
call fcn.00445f50
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x403ca6
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403b34
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
add edi, 8
cmp ecx, ebx
jne 0x403b45
xor esi, esi
jmp 0x403b5a
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
jne 0x403b54
xor esi, esi
jmp 0x403b5a
mov esi, dword [eax + 0x20]
add esi, 8
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call ebp
push eax
lea ecx, [esp + 0x2b0]
push ecx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call ebp
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call ebp
push eax
lea edx, [esp + 0xa8]
push edx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call ebp
mov edi, 7
lea eax, [esp + 0xa4]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
lea edx, [eax + 2]
jmp 0x403bc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403bc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x48]
call fcn.004011a0
mov byte [esp + 0x4c4], 1
lea eax, [esp + 0x2ac]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403c00
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea esi, [esp + 0x2c]
call fcn.004011a0
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x4c4], 2
mov ecx, dword [edx + 0x210]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, esi
push edx
call eax
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x403c59
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040f819
add esp, 4
mov byte [esp + 0x4c4], bl
cmp dword [esp + 0x58], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x403c80
mov edx, dword [esp + 0x44]
push edx
call fcn.0040f819
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00445fc0
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x403b30
mov esi, dword [esp + 0x20]
push esi
call fcn.0040f819
mov dword [esp + 0x4c8], 0xffffffff
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, 0x46d880
mov dword [esp + 0x5c], vtable.TiXmlDocument.0
je 0x403cd9
push eax
call fcn.0040f819
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.004465b0
mov eax, 1
mov ecx, dword [esp + 0x4bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0042f8e0
add esp, 0x4b4
ret 4