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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4120b4
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 0x402279
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x402279
mov ebp, dword [esp + 0x74]
cmp ebp, ebx
je 0x402279
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x402279
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 0x4021e1
xor esi, esi
jmp 0x4021e8
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 0x402207
cmp byte [eax], 0x3b
jne 0x402202
inc edi
inc eax
cmp eax, esi
jne 0x4021fc
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 0x40221d
xor esi, esi
jmp 0x402224
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 0x402243
cmp byte [eax], 0x3b
jne 0x40223e
inc ecx
inc eax
cmp eax, esi
jne 0x402238
cmp edi, ecx
je 0x40228e
push str._ParserResource__Error__Wrong_Resource_Item_n
call fcn.00402970
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 0x4022a4
xor esi, esi
jmp 0x4022ab
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 0x4022ca
cmp byte [eax], 0x3b
jne 0x4022c5
mov byte [eax], 0
inc eax
cmp eax, esi
jne 0x4022bd
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 0x4022e0
xor esi, esi
jmp 0x4022e7
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 0x402306
cmp byte [eax], 0x3b
jne 0x402301
mov byte [eax], 0
inc eax
cmp eax, esi
jne 0x4022f9
inc edi
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], edi
xor ebp, ebp
jmp 0x40231f
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x44], ebp
jb 0x402340
mov eax, dword [esp + 0x40]
test eax, eax
je 0x402340
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 0x402346
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 0x40239a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40239a
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 0x4023a0
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 0x402496
cmp eax, esi
jb 0x402446
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402446
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 0x40244b
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 0x402468
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 0x40246e
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 0x40248e
test eax, eax
je 0x40248e
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 0x4024b6
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 0x4024b6
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4024ae
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 0x4024b4
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 0x40252f
cmp dword [esp + 0x24], edi
jb 0x4024e1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4024e1
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 0x4024e6
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 0x402503
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 0x402509
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 0x402528
test eax, eax
je 0x402528
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 0x40254f
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 0x40254f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402547
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 0x40254d
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 [0x41cce8]
mov ecx, dword [esp + 0x74]
and ecx, eax
mov dword [esp + 0x74], ecx
jne 0x40257c
push str._ParserResource__Call_AddResourceRule_Fail_n
call fcn.00402970
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 0x402317
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