Function at 0x407190
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4118f6
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0x20
push 0xe
mov esi, ecx
call fcn.00404280
mov edx, dword [esp + 0x148]
mov edi, dword [edx + 4]
mov ecx, dword [edx + 8]
sub ecx, edi
sar ecx, 2
mov dword [eax + 8], ecx
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
sub ecx, ebx
sar ecx, 2
shr ecx, 1
mov dword [eax + 0xc], ecx
mov ebx, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
sub ecx, ebx
sar ecx, 2
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x14], ecx
mov edi, dword [edx + 0x28]
mov dword [eax + 0x18], edi
mov ebx, dword [esi]
test dword [ebx + 8], 0x100000
je 0x407240
mov ebx, dword [esi + 0x30]
mov ebp, ecx
and ebp, ebx
cmp ebp, ebx
je 0x40721a
mov ebx, dword [esi + 0x34]
mov ebp, ecx
and ebp, ebx
cmp ebp, ebx
jne 0x407222
mov ebx, dword [esi + 0x38]
or ebx, ecx
mov dword [eax + 0x14], ebx
mov ecx, dword [esi + 0x30]
mov ebx, edi
and ebx, ecx
cmp ebx, ecx
je 0x407238
mov ecx, dword [esi + 0x34]
mov ebx, edi
and ebx, ecx
cmp ebx, ecx
jne 0x407240
mov ecx, dword [esi + 0x38]
or ecx, edi
mov dword [eax + 0x18], ecx
mov cl, byte [edx + 0x20]
mov byte [eax + 0x1c], cl
mov cl, byte [edx + 0x21]
test cl, cl
sete cl
mov byte [eax + 0x1d], cl
mov ecx, dword [esi]
mov edi, dword [ecx + 0x12c]
mov ebp, dword [edx + 4]
sub eax, edi
mov dword [esp + 0x78], eax
mov eax, dword [edx + 8]
cmp ebp, eax
mov dword [esp + 0x2c], eax
je 0x407341
mov edi, dword [esi]
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x128]
xor ebx, ebx
cmp word [ebp + 2], bx
setne bl
add edi, 0x128
sub ecx, eax
add ebx, 2
shl ebx, 1
cmp ecx, ebx
jae 0x4072b0
mov ecx, dword [edi + 4]
mov edx, ebx
sub edx, ecx
add edx, eax
mov ecx, edi
call fcn.004106c0
mov edx, dword [esp + 0x148]
mov ecx, dword [edi + 8]
add ebx, ecx
mov dword [edi + 8], ebx
mov al, byte [esi + 0xc]
mov ebx, dword [esi + 4]
xor edi, edi
test al, al
mov di, word [ebp]
mov dword [esp + 0x10], ecx
je 0x4072e4
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov ecx, edi
call fcn.00410830
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x148]
jmp 0x4072e6
mov eax, edi
mov word [ecx], ax
mov di, word [ebp + 2]
test di, di
je 0x40732c
mov al, byte [esi + 0xc]
test al, al
mov ebx, dword [esi + 4]
je 0x40731e
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, edi
call fcn.00410830
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x148]
mov word [ecx + 2], ax
mov word [ecx + 4], 0
jmp 0x407332
mov eax, edi
mov word [ecx + 2], ax
mov word [ecx + 4], 0
jmp 0x407332
mov word [ecx + 2], 0
mov eax, dword [esp + 0x2c]
add ebp, 4
cmp ebp, eax
jne 0x407271
mov eax, dword [edx + 0x18]
mov edi, dword [edx + 0x14]
cmp edi, eax
mov dword [esp + 0x2c], eax
jne 0x407393
mov edi, dword [edx + 0x34]
mov edx, dword [edx + 0x38]
cmp edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edx
jne 0x407830
mov ecx, dword [esi]
mov eax, dword [ecx + 0x12c]
add eax, dword [esp + 0x78]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 8
mov edi, dword [esp + 0x10]
mov ax, word [edi + 2]
mov dx, word [edi]
mov ecx, dword [esi + 4]
mov word [esp + 0x16], ax
mov al, byte [esi + 0xc]
test al, al
mov word [esp + 0x14], dx
je 0x4073c0
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
call fcn.00410830
mov word [esp + 0x14], ax
mov al, byte [esi + 0xc]
test al, al
mov ecx, dword [esi + 4]
je 0x4073dc
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x16]
call fcn.00410830
mov word [esp + 0x16], ax
mov al, byte [esi + 0xc]
mov bx, word [edi + 4]
mov bp, word [edi + 6]
mov ecx, dword [esi + 4]
add edi, 4
test al, al
mov word [esp + 0x24], bx
mov word [esp + 0x26], bp
je 0x407410
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
call fcn.00410830
mov bx, ax
mov word [esp + 0x24], bx
mov al, byte [esi + 0xc]
test al, al
mov ecx, dword [esi + 4]
je 0x40742f
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x26]
call fcn.00410830
mov bp, ax
mov word [esp + 0x26], bp
add edi, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
xor edi, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x140], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov ecx, dword [esi]
test dword [ecx + 8], 0x200000
mov byte [esp + 0x140], 1
je 0x4075ac
mov ax, word [esp + 0x16]
mov dx, word [esp + 0x14]
mov word [esp + 0x1e], ax
cmp ax, di
mov word [esp + 0x1c], dx
mov word [esp + 0x20], di
mov word [esp + 0x30], bx
mov word [esp + 0x32], bp
mov word [esp + 0x34], di
lea eax, [esp + 0x20]
jne 0x40749f
lea eax, [esp + 0x1e]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esi + 4]
call fcn.00401e30
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 2
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x140], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp word [esp + 0x32], di
lea eax, [esp + 0x34]
jne 0x4074e9
lea eax, [esp + 0x32]
mov ecx, dword [esi + 4]
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x108]
push eax
call fcn.00401e30
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x144], 3
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0x100]
mov byte [esp + 0x140], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp dword [esp + 0x4c], edi
jne 0x407565
push edi
push 1
lea ecx, [esp + 0x124]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_int__unsigned_short_int_]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 4
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0x11c]
mov byte [esp + 0x140], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp dword [esp + 0x68], edi
jne 0x4076c6
push edi
push 1
lea ecx, [esp + 0xec]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_int__unsigned_short_int_]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x144], 5
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x140], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
jmp 0x4076c6
cmp word [esp + 0x16], di
je 0x40760d
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::insert_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator__unsigned_short_int_]
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov ecx, dword [esp + 0x16]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::insert_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator__unsigned_short_int_]
jmp 0x407649
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_int__unsigned_short_int_]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 6
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x140], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp bp, di
lea ecx, [esp + 0x54]
je 0x40769e
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::insert_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator__unsigned_short_int_]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov edx, dword [esp + 0x26]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
jmp 0x4076bc
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::insert_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator__unsigned_short_int_]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
add esp, 8
test al, al
jne 0x4077fa
mov eax, dword [esp + 0x4c]
mov edi, dword [esi]
mov ecx, dword [esp + 0x68]
mov edx, dword [edi + 0x128]
add edi, 0x128
lea ebx, [ecx + eax]
mov eax, dword [edi + 8]
lea ebx, [ebx + ebx + 4]
sub edx, eax
cmp edx, ebx
jae 0x407717
mov ebp, dword [edi + 4]
mov edx, ebx
sub edx, ebp
add edx, eax
mov ecx, edi
call fcn.004106c0
mov ebp, dword [edi + 8]
lea eax, [esp + 0x98]
add ebx, ebp
push eax
lea ecx, [esp + 0x3c]
mov dword [edi + 8], ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov edi, dword [eax]
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::begin_void_]
mov eax, dword [eax]
cmp eax, edi
je 0x40775e
mov ecx, ebp
sub ecx, eax
nop
mov dx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp eax, edi
jne 0x407750
mov eax, dword [esp + 0x4c]
mov word [ebp + eax*2], 0
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x74]
lea ebp, [ebp + ecx*2 + 2]
push edx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov edi, dword [eax]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::begin_void_]
mov eax, dword [eax]
cmp eax, edi
je 0x4077ae
mov ecx, ebp
sub ecx, eax
jmp 0x4077a0
mov dx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp eax, edi
jne 0x4077a0
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x54]
mov word [ebp + eax*2], 0
mov byte [esp + 0x140], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x10], ecx
jne 0x40738f
mov edx, dword [esp + 0x148]
jmp 0x40734f
lea ecx, [esp + 0x54]
mov byte [esp + 0x140], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
jmp 0x407374
mov edi, dword [esp + 0x10]
lea esp, [esp]
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov ax, word [edi + 2]
test ax, ax
lea ecx, [edi + 2]
mov dword [esp + 0x140], 7
je 0x40789e
mov dx, word [edi]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
mov word [esp + 0x20], dx
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0xd0]
push edx
mov word [esp + 0x2c], 0
call fcn.004041a0
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x144], 8
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0xc8]
jmp 0x4078cd
push ecx
mov ecx, dword [esi + 4]
push edi
lea eax, [esp + 0xec]
push eax
call fcn.004041a0
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x144], 9
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x140], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x40799a
mov edi, dword [esi]
mov ecx, dword [edi + 0x128]
add edi, 0x128
lea ebp, [eax + eax + 2]
mov eax, dword [edi + 8]
sub ecx, eax
cmp ecx, ebp
jae 0x407915
mov ebx, dword [edi + 4]
mov edx, ebp
sub edx, ebx
add edx, eax
mov ecx, edi
call fcn.004106c0
mov ebx, dword [edi + 8]
lea edx, [esp + 0x70]
add ebp, ebx
push edx
lea ecx, [esp + 0x80]
mov dword [edi + 8], ebp
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::end_void_]
mov edi, dword [eax]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::iterator___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::begin_void_]
mov eax, dword [eax]
cmp eax, edi
je 0x40795e
mov ecx, ebx
sub ecx, eax
lea ecx, [ecx]
mov dx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp eax, edi
jne 0x407950
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
add edi, 4
lea ecx, [esp + 0x7c]
mov word [ebx + eax*2], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp edi, dword [esp + 0x2c]
jne 0x407828
jmp 0x407365
lea ecx, [esp + 0x7c]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
jmp 0x407374