Function at 0x40f220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x507d4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1c]
call fcn.004efb49
lea ecx, [esp + 0x30]
mov dword [esp + 0x288], ebx
call fcn.004ef603
mov ecx, dword [0x543c98]
mov byte [esp + 0x288], 1
mov dword [esp + 0x40], ecx
mov byte [esp + 0x288], 2
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], vtable.CFileException.0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0xffffffff
call fcn.004ea8d8
lea edx, [esp + 0x30]
lea eax, [esp + 0x78]
push edx
push 0x40
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x294], 3
call fcn.004efcfb
test eax, eax
jne 0x40f2f0
lea ecx, [esp + 0x14]
push 0x52b250
push ecx
mov dword [esp + 0x1c], 1
call fcn.0043553a
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.004efff5
mov esi, eax
mov dword [esp + 0x1c], ebx
cmp esi, 8
mov dword [esp + 0x10], ebx
jbe 0x40f4e3
lea ecx, [esp + 0x20]
call fcn.004efff5
cmp esi, eax
ja 0x40f4e3
lea edx, [esi - 8]
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.004efe9d
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x28]
call fcn.004efe18
lea ecx, [esp + 0x1c]
push 4
push ecx
lea ecx, [esp + 0x28]
call fcn.004efe18
mov eax, dword [esp + 0x1c]
cmp eax, 3
je 0x40f381
cmp eax, ebx
je 0x40f4e3
cmp eax, 4
ja 0x40f4e3
mov edi, dword [esp + 0x10]
mov edx, 0xfffffff8
sub edx, edi
add esi, edx
cmp esi, 8
ja 0x40f311
jmp 0x40f4e3
mov eax, dword [esp + 0x10]
cmp eax, 0x100000
ja 0x40f4e3
cmp eax, 8
jb 0x40f4e3
push eax
call fcn.004eae0a
mov edx, dword [esp + 0x14]
add esp, 4
sub esi, edx
lea ecx, [esp + 0x20]
sub esi, 8
push ebx
push esi
mov edi, eax
call fcn.004efe9d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push edi
call fcn.004efe18
lea ecx, [esp + 0x48]
call fcn.004915c0
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x290], 7
call fcn.004922f0
push edi
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0x48]
push str.Blacklist
call fcn.00492630
cmp eax, ebx
je 0x40f4d2
lea ecx, [esp + 0x48]
call fcn.00492930
push ebx
lea ecx, [esp + 0x4c]
call fcn.00492630
test eax, eax
je 0x40f4c9
lea ecx, [esp + 0x14]
push str.name
push ecx
lea ecx, [esp + 0x50]
call fcn.00492b80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 8
call fcn.004596f0
lea ecx, [esp + 0x14]
call fcn.004593f0
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x40f4b8
push 0x541304
push eax
call fcn.00435619
add esp, 8
cmp eax, ebx
jne 0x40f4b8
lea edx, [esp + 0x30]
push str.falg
push edx
lea ecx, [esp + 0x50]
call fcn.00492b80
mov eax, dword [eax]
lea esi, [ebp + 0xe0]
push esi
push str._I64u
push eax
mov byte [esp + 0x298], 9
call fcn.00435574
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x28c], 8
call fcn.00455820
mov eax, dword [esi]
mov ecx, dword [esi + 4]
or eax, ecx
je 0x40f4b8
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 7
call fcn.00455820
lea ecx, [esp + 0x48]
call fcn.00492960
lea ecx, [esp + 0x48]
mov byte [esp + 0x28c], 3
call fcn.00491650
lea ecx, [esp + 0x20]
call fcn.004eff16
mov byte [esp + 0x28c], bl
mov dword [esp + 0x34], vtable.CFileException.0
lea ecx, [esp + 0x44]
mov byte [esp + 0x28c], 0xa
call fcn.004ea741
lea ecx, [esp + 0x20]
mov dword [esp + 0x28c], 0xffffffff
call fcn.004efc3e
mov ecx, dword [esp + 0x284]
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret