Function at 0x409720
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x459def
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x200]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, 0xf
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ebx
mov dword [esp + 0x14], eax
mov byte [eax + 4], bl
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0x1f8], eax
push 0x104
lea eax, [esp + 0xe9]
push ebx
push eax
mov byte [esp + 0xf0], bl
call fcn.0043e250
add esp, 0xc
push 0x104
lea ecx, [esp + 0xe8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xe4]
push 0x5c
push edx
call fcn.004389b0
mov byte [eax], bl
lea eax, [esp + 0xec]
add esp, 8
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409803
sub eax, edx
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0xd0]
call fcn.00403c00
mov byte [esp + 0x1f8], 2
jmp 0x409830
push 4
push str..exe
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00403c00
lea ecx, [esp + 0x90]
mov byte [esp + 0x1f8], 3
call fcn.00409610
mov ebp, eax
lea ecx, [esp + 0xc8]
push ecx
mov edi, 0x45fd98
lea esi, [esp + 0x78]
mov byte [esp + 0x1fc], 4
call fcn.00404920
push ebp
push eax
lea edi, [esp + 0x64]
mov byte [esp + 0x204], 5
call fcn.00404a80
lea edx, [esp + 0x28]
push edx
push eax
lea edi, [esp + 0x50]
mov byte [esp + 0x20c], 6
call fcn.00404a80
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x204], 7
call fcn.00403810
mov ebp, 0x10
cmp dword [esp + 0x54], ebp
jb 0x4098dd
mov eax, dword [esp + 0x40]
push eax
call fcn.0043870c
add esp, 4
cmp dword [esp + 0x70], ebp
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x409901
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043870c
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x409923
mov edx, dword [esp + 0x78]
push edx
call fcn.0043870c
add esp, 4
cmp dword [esp + 0xa8], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x40994e
mov eax, dword [esp + 0x94]
push eax
call fcn.0043870c
add esp, 4
mov byte [esp + 0x1f8], 2
cmp dword [esp + 0x34], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x40997e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043870c
add esp, 4
cmp dword [esp + 0xc4], ebp
mov eax, dword [esp + 0xb0]
jae 0x409995
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409830
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x46000c
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x409a38
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
jbe 0x409a33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x409a33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd4]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov edi, eax
mov esi, 2
mov byte [ecx + 4], bl
call fcn.00403810
mov ecx, esi
call fcn.004096a0
add esp, 0x20
cmp al, bl
je 0x409a33
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb4]
push eax
call fcn.00403810
mov ebp, 0x10
cmp dword [esp + 0xe0], ebp
jb 0x409a51
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0043870c
add esp, 4
cmp dword [esp + 0xc4], ebp
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x409a83
mov edx, dword [esp + 0xb0]
push edx
call fcn.0043870c
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.00438866
add esp, 0x1e8
ret