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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4123a4
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x402369
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x402369
mov ebp, dword [esp + 0x74]
cmp ebp, ebx
je 0x402369
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x402369
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x6c]
lea ecx, [esp + 0x3c]
push ebx
mov byte [esp + 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x6c]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x4022d1
xor esi, esi
jmp 0x4022d8
mov edx, dword [esp + 0x44]
lea esi, [edx + eax]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, esi
je 0x4022f7
cmp byte [eax], 0x3b
jne 0x4022f2
inc edi
inc eax
cmp eax, esi
jne 0x4022ec
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40230d
xor esi, esi
jmp 0x402314
mov ecx, dword [esp + 0x34]
lea esi, [ecx + eax]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x30]
xor ecx, ecx
cmp eax, esi
je 0x402333
cmp byte [eax], 0x3b
jne 0x40232e
inc ecx
inc eax
cmp eax, esi
jne 0x402328
cmp edi, ecx
je 0x40237e
push str._ParserResource__Error__Wrong_Resource_Item_n
call fcn.00402a60
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x402394
xor esi, esi
jmp 0x40239b
mov edx, dword [esp + 0x44]
lea esi, [edx + eax]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x4023ba
cmp byte [eax], 0x3b
jne 0x4023b5
mov byte [eax], 0
inc eax
cmp eax, esi
jne 0x4023ad
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4023d0
xor esi, esi
jmp 0x4023d7
mov ecx, dword [esp + 0x34]
lea esi, [ecx + eax]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4023f6
cmp byte [eax], 0x3b
jne 0x4023f1
mov byte [eax], 0
inc eax
cmp eax, esi
jne 0x4023e9
inc edi
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], edi
xor ebp, ebp
jmp 0x40240f
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x44], ebp
jb 0x402430
mov eax, dword [esp + 0x40]
test eax, eax
je 0x402430
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x40]
lea esi, [edx + ebp]
jmp 0x402436
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov al, byte [esp + 0x6c]
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x64], 2
cmp eax, ebx
jb 0x40248a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40248a
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov ecx, dword [esp + 0x30]
lea esi, [ecx + ebx]
jmp 0x402490
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dl, byte [esp + 0x6c]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 1
lea eax, [esp + 0x70]
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 3
mov byte [esp + 0x78], 0x7e
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
push 1
lea ecx, [esp + 0x74]
push 0
push ecx
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x7c], 0x7e
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x54]
lea edx, [eax + ebp + 1]
mov dword [esp + 0x10], edx
lea edx, [ebx + ecx + 1]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x14], edx
cmp esi, dword [ecx]
je 0x402586
cmp eax, esi
jb 0x402536
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402536
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x50]
lea eax, [edx + esi]
jmp 0x40253b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov byte [eax], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402558
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x50]
mov ebx, eax
jmp 0x40255e
mov ebx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x54]
inc esi
cmp ecx, esi
jb 0x40257e
test eax, eax
je 0x40257e
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x50]
lea ebp, [eax + esi]
jmp 0x4025a6
mov ebp, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x4025a6
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40259e
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov ebx, dword [esp + 0x50]
jmp 0x4025a4
mov ebx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp edi, dword [ecx]
je 0x40261f
cmp dword [esp + 0x24], edi
jb 0x4025d1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4025d1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x20]
lea eax, [edx + edi]
jmp 0x4025d6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov byte [eax], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4025f3
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x20]
mov esi, eax
jmp 0x4025f9
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x24]
inc edi
cmp ecx, edi
jb 0x402618
test eax, eax
je 0x402618
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x20]
add eax, edi
jmp 0x40263f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x40263f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402637
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov esi, dword [esp + 0x20]
jmp 0x40263d
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
push ecx
push eax
push esi
push ebp
push ebx
push edx
call dword [0x41cd38]
mov ecx, dword [esp + 0x74]
and ecx, eax
mov dword [esp + 0x74], ecx
jne 0x40266c
push str._ParserResource__Call_AddResourceRule_Fail_n
call fcn.00402a60
add esp, 4
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x78]
dec eax
test eax, eax
mov dword [esp + 0x78], eax
jg 0x402407
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret