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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ca5b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x44f008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp dword [esi + 0x88], 0
je 0x4085e8
lea eax, [esi + 0x68]
push 0x4439a3
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x4085e8
cmp dword [esi + 0x8c], 0
jne 0x4085e8
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x88]
push 0x443a9c
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
push ebx
push eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x8c], 0
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov byte [esp + 0x80], 1
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1c]
jmp 0x4086e1
push str.TYFileSystem::getFileType
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea edx, [esp + 0x58]
mov ecx, esi
mov dword [esp + 0x84], 2
call fcn.004068d0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esi + 0x30]
lea ecx, [esp + 0x14]
call fcn.0040f150
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jne 0x40865f
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x4086f4
mov ebx, dword [eax + 0x28]
mov edx, dword [esi + 0x40]
imul ebx, ebx, 0x75
add ebx, dword [esi + 0xae]
lea eax, [esp + 0x54]
mov dword [esp + 0x10], edx
push eax
lea edx, [esi + 0x3c]
lea ecx, [esp + 0x18]
call fcn.0040f490
mov edx, dword [esp + 0x14]
xor ecx, ecx
add esp, 4
cmp dword [eax], edx
sete cl
add ecx, 1
test edi, edi
mov esi, ecx
je 0x4086dd
mov eax, dword [ebx + 0x4a]
mov dword [edi], eax
mov dword [edi + 4], 0
movzx edx, word [ebx + 0x42]
movzx eax, word [ebx + 0x44]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
or eax, edx
xor ebx, ebx
or ecx, ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00436b14
mov esp, ebp
pop ebp
ret 8