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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
push esi
push edi
lea ecx, [ecx]
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
mov esi, 8
cmp eax, 0xfffffffc
je 0x4f8302
test eax, eax
je 0x4f82fc
cmp eax, dword [esp + 0x78]
je 0x4f8302
call ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
cmp ecx, dword [esp + 0x7c]
je 0x4f86b5
cmp eax, 0xfffffffc
je 0x4f833e
test eax, eax
jne 0x4f831f
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f8329
mov ecx, dword [eax + 4]
jmp 0x4f832c
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f833e
call ebp
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
cmp word [edi], 0x24
je 0x4f83b2
mov esi, eax
cmp eax, 0xfffffffc
je 0x4f8375
test eax, eax
jne 0x4f8359
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], 8
jb 0x4f8364
mov ecx, dword [eax + 4]
jmp 0x4f8367
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea eax, [ecx + edx*2]
cmp dword [esp + 0x74], eax
jb 0x4f8375
call ebp
add dword [esp + 0x74], 2
cmp esi, 0xfffffffc
je 0x4f839f
test esi, esi
jne 0x4f8385
call ebp
cmp dword [esi + 0x18], 8
jb 0x4f8390
mov eax, dword [esi + 4]
jmp 0x4f8393
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x4f839f
call ebp
movzx eax, word [edi]
mov ecx, dword [esp + 0x6c]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::push_back_wchar_t_]
jmp 0x4f82e4
cmp eax, 0xfffffffc
je 0x4f83e0
test eax, eax
jne 0x4f83c1
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f83cb
mov ecx, dword [eax + 4]
jmp 0x4f83ce
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f83e0
call ebp
mov eax, dword [esp + 0x70]
add dword [esp + 0x74], 2
cmp eax, 0xfffffffc
je 0x4f83fa
test eax, eax
je 0x4f83f4
cmp eax, dword [esp + 0x78]
je 0x4f83fa
call ebp
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x74], edx
je 0x4f82ed
cmp eax, 0xfffffffc
je 0x4f8436
test eax, eax
jne 0x4f8417
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f8421
mov ecx, dword [eax + 4]
jmp 0x4f8424
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f8436
call ebp
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp word [edx], 0x24
jne 0x4f8451
mov ecx, dword [esp + 0x6c]
push 0x24
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::push_back_wchar_t_]
jmp 0x4f8505
cmp eax, 0xfffffffc
je 0x4f847f
test eax, eax
jne 0x4f8460
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f846a
mov ecx, dword [eax + 4]
jmp 0x4f846d
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f847f
call ebp
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp word [edx], 0x60
jne 0x4f84a2
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x20]
push edx
lea edx, [esp + 0x20]
jmp 0x4f84f1
cmp eax, 0xfffffffc
je 0x4f84d0
test eax, eax
jne 0x4f84b1
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f84bb
mov ecx, dword [eax + 4]
jmp 0x4f84be
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f84d0
call ebp
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp word [edx], 0x27
jne 0x4f8541
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x38]
push ecx
mov ecx, dword [ebx + 0x34]
push edx
lea edx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.004f7700
mov eax, dword [eax]
mov dword [esp + 0x84], eax
add esp, 0x18
mov eax, dword [esp + 0x70]
cmp eax, 0xfffffffc
je 0x4f8537
test eax, eax
jne 0x4f8518
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f8522
mov ecx, dword [eax + 4]
jmp 0x4f8525
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x74], ecx
jb 0x4f8537
call ebp
mov eax, dword [esp + 0x70]
add dword [esp + 0x74], 2
jmp 0x4f82ed
cmp eax, 0xfffffffc
je 0x4f856b
test eax, eax
jne 0x4f8550
call ebp
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x18], esi
jb 0x4f855a
mov ecx, dword [eax + 4]
jmp 0x4f855d
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea eax, [ecx + edx*2]
cmp dword [esp + 0x74], eax
jb 0x4f856b
call ebp
mov ecx, dword [esp + 0x74]
cmp word [ecx], 0x26
lea esi, [esp + 0x70]
jne 0x4f8585
xor ebx, ebx
call fcn.004ff2e0
jmp 0x4f8610
call fcn.004ff320
mov edx, 0x30
cmp dx, word [eax]
ja 0x4f8680
lea esi, [esp + 0x70]
call fcn.004ff320
cmp word [eax], 0x39
ja 0x4f8680
lea edi, [esp + 0x20]
call fcn.004f8730
mov esi, eax
call fcn.004ff320
movzx ebx, word [eax]
lea esi, [esp + 0x78]
lea edi, [esp + 0x70]
sub ebx, 0x30
call fcn.004ff360
test al, al
je 0x4f8608
mov esi, edi
call fcn.004ff320
mov ecx, 0x30
cmp cx, word [eax]
ja 0x4f8608
call fcn.004ff320
cmp word [eax], 0x39
ja 0x4f8608
lea edi, [esp + 0x28]
call fcn.004f8730
mov esi, eax
call fcn.004ff320
movzx eax, word [eax]
lea edx, [ebx + ebx*4]
lea ebx, [eax + edx*2 - 0x30]
test ebx, ebx
jl 0x4f82e0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x4f82e0
mov edi, dword [esp + 0x68]
lea esi, [esp + 0x38]
call fcn.004f8780
mov ecx, dword [esp + 0x6c]
push ecx
lea esi, [esp + 0x50]
mov ebp, eax
call fcn.004f8780
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004f7700
mov ecx, dword [eax]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add esp, 0x18
mov dword [esp + 0x6c], ecx
mov ebx, edi
jmp 0x4f82e4
mov ecx, dword [esp + 0x6c]
push 0x24
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::push_back_wchar_t_]
mov ebx, dword [esp + 0x6c]
lea edi, [esp + 0x30]
lea esi, [esp + 0x70]
call fcn.004f8730
mov esi, eax
call fcn.004ff320
movzx ecx, word [eax]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::push_back_wchar_t_]
jmp 0x4f82e0
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x50
ret