Function at 0x406dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d43a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov esi, ecx
call fcn.004066a0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x406e2b
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.FineObj.dll_class_FObj::CUnicodeString___cdecl_FObj::FileSystem::MergePath_class_FObj::CUnicodeString_const___class_FObj::CUnicodeString_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call dword [sym.imp.FineObj.dll_public:_class_FObj::CUnicodeString____thiscall_FObj::CUnicodeString::operator_class_FObj::CUnicodeString_const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x34], 2
mov eax, dword [edi + 8]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jle 0x406fbc
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + ebp*4]
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.FineObj.dll_class_FObj::CUnicodeString___cdecl_FObj::FileSystem::MergePath_class_FObj::CUnicodeString_const___class_FObj::CUnicodeString_const__]
add esp, 0xc
mov byte [esp + 0x34], 3
mov eax, dword [esi + 8]
test al, 4
je 0x406e8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
jmp 0x406fae
test al, 1
je 0x406ebe
lea edx, [esp + 0x10]
push 0xff00ff00
push edx
call dword [sym.imp.FineObj.dll_bool___cdecl_FObj::FileSystem::AccessFile_class_FObj::CUnicodeString_const___unsigned_int_]
add esp, 8
test al, al
jne 0x406ebe
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
jmp 0x406fae
xor edi, edi
cmp dword [esi + 0xc], edi
jle 0x406ee0
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
lea edx, [ecx + edi*4]
push edx
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::RegisterDelayLoadedObjectModule_class_FObj::CUnicodeString_const___class_FObj::CUnicodeString_const__]
inc edi
add esp, 8
cmp edi, dword [esi + 0xc]
jl 0x406ec5
test byte [esi + 8], 2
je 0x406f9b
mov edi, dword [esp + 0x28]
lea esi, [ebx + 1]
cmp esi, edi
mov dword [esp + 0x18], esi
jle 0x406f76
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp eax, 8
mov ecx, eax
jg 0x406f0c
mov ecx, 8
mov eax, esi
sub eax, edi
cmp eax, ecx
jg 0x406f16
mov eax, ecx
mov ebp, dword [esp + 0x24]
add edi, eax
test edi, edi
jle 0x407048
lea eax, [edi*4]
push eax
call dword [sym.imp.FineObj.dll_void____cdecl_FObj::doAlloc_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
jne 0x406f41
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::ThrowMemoryException_void_]
mov dword [esp + 0x24], esi
test ebx, ebx
jle 0x406f5c
lea ecx, [ebx*4]
push ecx
push ebp
push esi
call dword [sym.imp.MSVCR90.dll_memmove]
add esp, 0xc
mov esi, dword [esp + 0x18]
test ebp, ebp
je 0x406f6e
push ebp
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::doFree_void__]
add esp, 4
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x24]
lea ecx, [edx + ebx*4]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x34], 4
test ecx, ecx
je 0x406f95
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::constructor_class_FObj::CUnicodeString_const__]
mov ebx, esi
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
mov edi, dword [esp + 0x3c]
inc ebp
cmp ebp, dword [edi + 8]
mov dword [esp + 0x1c], ebp
jl 0x406e52
xor esi, esi
pop ebp
test ebx, ebx
jle 0x406fe5
mov edi, dword [sym.imp.FineObj.dll_struct_HINSTANCE______cdecl_FObj::LoadModule_wchar_t_const__]
lea esp, [esp]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + esi*4]
add edx, 0xc
push edx
call edi
inc esi
add esp, 4
cmp esi, ebx
jl 0x406fd0
mov byte [esp + 0x30], 0
test ebx, ebx
je 0x407010
lea esi, [ebx - 1]
test esi, esi
jl 0x407010
mov eax, dword [esp + 0x20]
lea edi, [eax + esi*4]
lea esp, [esp]
mov ecx, edi
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
dec esi
sub edi, 4
test esi, esi
jge 0x407000
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
test eax, eax
je 0x407025
push eax
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::doFree_void__]
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov dword [esp + 0x24], 0
jmp 0x406f60