Function at 0x40d430
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d65
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x70]
xor ebx, ebx
push eax
mov dword [ebp - 0xdc], ebx
call fcn.0040cb10
push eax
lea ecx, [ebp - 0x104]
push ecx
mov dword [ebp - 4], ebx
call fcn.0040d2a0
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], esi
jb 0x40d49c
mov edx, dword [ebp - 0x70]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x100]
mov edx, 0xf
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp eax, ecx
jne 0x40d4ea
cmp eax, ebx
je 0x40d4e2
mov edx, dword [ebp - 0xe4]
push edx
lea edx, [ebp - 0xf8]
push edx
push ecx
push eax
call fcn.0040cc60
mov eax, dword [ebp - 0x104]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
or eax, 0xffffffff
jmp 0x40dd75
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.004018c0
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xf4]
push edx
mov byte [ebp - 4], 3
call fcn.0040d0e0
add esp, 8
mov byte [ebp - 4], 4
mov edi, 1
cmp dword [ebp - 0x44], ebx
je 0x40d538
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x40d52f
lea eax, [ebp - 0x54]
cmp byte [eax], 0x2f
jne 0x40d538
mov al, 1
jmp 0x40d53a
xor al, al
mov esi, edi
mov dword [ebp - 0xe4], edi
cmp al, bl
je 0x40d565
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], edi
mov word [ebp - 0x70], 0x2f
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
mov dword [ebp - 0xdc], edi
jmp 0x40d5a3
push ebx
push 0x41370c
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
call fcn.004019b0
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 6
mov dword [ebp - 0xdc], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.004018c0
mov al, byte [ebp - 0x1c]
and al, 0xfe
or al, 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 7
mov byte [ebp - 0x1c], al
call fcn.0040c800
mov dword [ebp - 4], 8
test byte [ebp - 0xdc], 2
je 0x40d61a
and dword [ebp - 0xdc], 0xfffffffd
cmp dword [ebp - 0x94], 0x10
jb 0x40d604
mov ecx, dword [ebp - 0xa8]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
test byte [ebp - 0xdc], 1
mov byte [ebp - 4], 0xa
je 0x40d640
and dword [ebp - 0xdc], 0xfffffffe
cmp dword [ebp - 0x5c], 0x10
jb 0x40d640
mov edx, dword [ebp - 0x70]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0xffffffffffffffff
push ebx
cmp dword [ebp - 0x28], ebx
jne 0x40d659
mov eax, dword [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x38]
call fcn.004018c0
jmp 0x40d668
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00402f60
lea ecx, [ebp - 0x38]
call fcn.0040c800
and byte [ebp - 0x1c], 0xfe
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401ab0
or dword [ebp - 0xdc], 4
push edi
push ebx
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, eax
mov byte [ebp - 0xe0], 0x3a
call fcn.0040c120
cmp eax, 0xffffffff
je 0x40d6d1
mov ecx, dword [ebp - 0xf0]
sub ecx, dword [ebp - 0xf4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 0xe0], 1
cmp eax, 2
jae 0x40d6d7
mov byte [ebp - 0xe0], bl
test byte [ebp - 0xdc], 4
je 0x40d6fc
and dword [ebp - 0xdc], 0xfffffffb
cmp dword [ebp - 0x78], 0x10
jb 0x40d6fc
mov ecx, dword [ebp - 0x8c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp - 0xe0], bl
je 0x40d721
mov edx, dword [ebp - 0xf4]
add edx, 0x1c
push edx
lea ecx, [ebp - 0x38]
call fcn.0040c9e0
mov esi, 2
mov dword [ebp - 0xe4], esi
lea edi, [esi*8]
sub edi, esi
add edi, edi
add edi, edi
mov edi, edi
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x40d73c
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
cmp eax, ebx
jne 0x40d894
mov ecx, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xe4], eax
jae 0x40d7d6
add esi, edi
cmp dword [ebp - 0x28], ebx
jne 0x40d793
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.004018c0
jmp 0x40d7bc
cmp dword [esi + 0x14], 0x10
jb 0x40d79d
mov eax, dword [esi]
jmp 0x40d79f
mov eax, esi
cmp byte [eax], 0x2f
je 0x40d7b0
push 0x2f
push 1
lea ecx, [ebp - 0x38]
call fcn.0040c2c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.00402f60
lea ecx, [ebp - 0x38]
call fcn.0040c800
and byte [ebp - 0x1c], 0xfe
inc dword [ebp - 0xe4]
add edi, 0x1c
jmp 0x40d730
cmp dword [ebp - 0x24], 0x10
jb 0x40d7ee
mov ecx, dword [ebp - 0x38]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0xf4]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
cmp esi, ebx
je 0x40d82a
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xf0]
push edx
lea eax, [ebp - 0xe8]
push eax
push ecx
push esi
call fcn.0040cc60
mov edx, dword [ebp - 0xf4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
jb 0x40d84e
mov eax, dword [ebp - 0x54]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
cmp eax, ebx
je 0x40dd73
mov ecx, dword [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0x100]
lea edx, [ebp - 0xf8]
push edx
push ecx
push eax
call fcn.0040cc60
mov edx, dword [ebp - 0x104]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x40dd73
mov eax, dword [ebp - 0x38]
mov edi, 0x10
cmp dword [ebp - 0x24], edi
jae 0x40d8a4
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
je 0x40db7d
push 5
push 0x1000
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e470
test al, al
je 0x40dac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x19c], 0x413510
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
or dword [ebp - 0xdc], 8
push ebx
push ebx
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx + 4]
mov edi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 0xc
mov dword [ebp + edx - 0x19c], edi
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov esi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], 4
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call fcn.00401ab0
push eax
lea ecx, [ebp - 0x70]
push str.Error_creating_directory:
push ecx
mov byte [ebp - 4], 0xf
call fcn.0040cc10
push eax
lea edx, [ebp - 0x19c]
push edx
mov byte [ebp - 4], 0x10
call fcn.004013b0
add esp, 0x14
cmp dword [ebp - 0x5c], 0x10
jb 0x40d996
mov eax, dword [ebp - 0x70]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov byte [ebp - 4], 0xe
jb 0x40d9bc
mov ecx, dword [ebp - 0x8c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x19c]
call fcn.00403ac0
push eax
push 0x16c
push str.....SimGear_simgearmisc_sg_path.cxx
push 5
push 0x1000
mov byte [ebp - 4], 0x11
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e840
cmp dword [ebp - 0x78], 0x10
jb 0x40da05
mov eax, dword [ebp - 0x8c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0xe4], ecx
mov dword [ebp + eax - 0x19c], edi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x198], esi
test byte [ebp - 0x158], 1
mov byte [ebp - 4], 0x13
je 0x40da51
mov edx, dword [ebp - 0x188]
mov eax, dword [edx]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x198]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [ebp - 0x184]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x174]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x164]
mov dword [edx], ebx
and dword [ebp - 0x158], 0xfffffffe
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 4], 0x12
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
mov edx, dword [sym.imp.MSVCP100.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp + ecx - 0x19c], edx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, 0x10
cmp dword [ebp - 0x24], edi
jb 0x40dad1
mov eax, dword [ebp - 0x38]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xf4]
mov esi, 0xf
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
cmp eax, ebx
je 0x40db13
mov ecx, dword [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0xf0]
lea edx, [ebp - 0xe8]
push edx
push ecx
push eax
call fcn.0040cc60
mov edx, dword [ebp - 0xf4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
cmp dword [ebp - 0x40], edi
jb 0x40db36
mov eax, dword [ebp - 0x54]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
cmp eax, ebx
je 0x40db73
mov ecx, dword [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0x100]
lea edx, [ebp - 0xf8]
push edx
push ecx
push eax
call fcn.0040cc60
mov edx, dword [ebp - 0x104]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, 0xfffffffe
jmp 0x40dd75
mov ecx, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xe4], eax
jae 0x40dc62
mov eax, dword [ebp - 0xe4]
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
lea ecx, [ecx]
add esi, edi
cmp dword [ebp - 0x28], ebx
jne 0x40dbd5
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.004018c0
jmp 0x40dbfe
cmp dword [esi + 0x14], 0x10
jb 0x40dbdf
mov eax, dword [esi]
jmp 0x40dbe1
mov eax, esi
cmp byte [eax], 0x2f
je 0x40dbf2
push 0x2f
push 1
lea ecx, [ebp - 0x38]
call fcn.0040c2c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.00402f60
lea ecx, [ebp - 0x38]
call fcn.0040c800
and byte [ebp - 0x1c], 0xfe
mov eax, dword [ebp - 0x38]
mov esi, 0x10
cmp dword [ebp - 0x24], esi
jae 0x40dc1a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
jne 0x40dd93
mov ecx, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
inc dword [ebp - 0xe4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add edi, 0x1c
cmp dword [ebp - 0xe4], ecx
jb 0x40dbc0
cmp dword [ebp - 0x24], 0x10
jb 0x40dc7a
mov eax, dword [ebp - 0x38]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0xf4]
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x40dce3
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov edi, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
cmp esi, edi
je 0x40dcda
jmp 0x40dcb0
cmp dword [esi + 0x14], 0x10
jb 0x40dcc1
mov eax, dword [esi]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x40dcb0
mov esi, dword [ebp - 0xf4]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
jb 0x40dd07
mov ecx, dword [ebp - 0x54]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x104], ebx
je 0x40dd73
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x104]
cmp esi, edi
je 0x40dd6a
nop
cmp dword [esi + 0x14], 0x10
jb 0x40dd51
mov edx, dword [esi]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x40dd40
mov esi, dword [ebp - 0x104]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410820
mov esp, ebp
pop ebp
ret 4
push 5
push 0x1000
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e470
test al, al
je 0x40dfb1
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x19c], 0x413510
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
or dword [ebp - 0xdc], esi
push ebx
push ebx
lea edx, [ebp - 0x198]
push edx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0x14
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 0x15
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov esi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], 4
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call fcn.00401ab0
push eax
lea eax, [ebp - 0x70]
push str.Error_creating_directory:
push eax
mov byte [ebp - 4], 0x18
call fcn.0040cc10
push eax
lea ecx, [ebp - 0x19c]
push ecx
mov byte [ebp - 4], 0x19
call fcn.004013b0
mov edi, 0x10
add esp, 0x14
cmp dword [ebp - 0x5c], edi
jb 0x40de75
mov edx, dword [ebp - 0x70]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x78], edi
jb 0x40de9a
mov eax, dword [ebp - 0x8c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.00403ac0
push eax
push 0x172
push str.....SimGear_simgearmisc_sg_path.cxx
push 5
push 0x1000
mov byte [ebp - 4], 0x1a
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e840
cmp dword [ebp - 0x78], edi
jb 0x40dee2
mov edx, dword [ebp - 0x8c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
mov dword [ebp - 0xe4], eax
mov dword [ebp + edx - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea eax, [ebp - 0x198]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x198], esi
test byte [ebp - 0x158], 1
mov byte [ebp - 4], 0x1c
je 0x40df42
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x198]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov edx, dword [ebp - 0x184]
mov dword [edx], ebx
mov eax, dword [ebp - 0x174]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x164]
mov dword [ecx], ebx
and dword [ebp - 0x158], 0xfffffffe
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x19c]
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0x19c], ecx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, 0x10
cmp dword [ebp - 0x24], esi
jb 0x40dfc2
mov edx, dword [ebp - 0x38]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xf4]
mov edi, 0xf
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
cmp eax, ebx
je 0x40e004
mov ecx, dword [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0xf0]
lea edx, [ebp - 0xe8]
push edx
push ecx
push eax
call fcn.0040cc60
mov edx, dword [ebp - 0xf4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
cmp dword [ebp - 0x40], esi
jb 0x40e027
mov eax, dword [ebp - 0x54]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x104], ebx
je 0x40db73
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
lea edx, [ebp - 0xf8]
push edx
push eax
push ecx
jmp 0x40db5f