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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b22c
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x2c]
mov eax, dword [esi + 0x40]
lea ebp, [esi + 0x40]
mov edx, dword [eax + 8]
mov ecx, dword [edi + 0x118]
cmp edx, ecx
je 0x4a485e
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
cmp eax, edx
jge 0x4a481a
mov dword [esp + 0x30], 0
jmp 0x4a4832
je 0x4a4824
mov ecx, dword [ecx + 4]
cmp dword [ecx + 8], edx
jne 0x4a481c
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x78], 0
call fcn.004a47b0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [edi + 0x114]
test ecx, ecx
je 0x4a487f
mov ecx, dword [esi + 0x14]
mov ebx, dword [eax + 0x10]
cmp ecx, ebx
sete cl
test cl, cl
je 0x4a487f
mov dword [eax + 0xc], edx
jmp 0x4a4885
mov edx, dword [esi + 0x14]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jne 0x4a48a9
mov edx, dword [edi + 0x10c]
mov bl, byte [edi + 0x10c]
shr edx, 1
and bl, 1
and dl, 1
mov byte [esp + 0x13], dl
jmp 0x4a48c0
xor eax, eax
mov al, byte [ecx]
mov al, byte [eax + edi + 0xc]
mov bl, al
shr al, 1
and bl, 1
and al, 1
mov byte [esp + 0x13], al
mov dl, al
mov eax, dword [ebp]
mov ebp, dword [eax + 0xc]
cmp ebp, dword [edi + 0x110]
jae 0x4a4a03
test bl, bl
je 0x4a49ee
mov ecx, ebp
inc ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
mov al, byte [0x65a19c]
test al, 1
jne 0x4a493c
or al, 1
mov dword [0x5a3600], 0x4a57a0
mov byte [0x65a19c], al
mov dword [0x5a3604], 0x4a5450
mov dword [0x5a3608], 0x4a50f0
mov dword [0x5a360c], 0x4a4d30
mov dword [0x5a3610], 0x4a5b80
mov dword [0x5a3614], 0x4a5bb0
mov dword [0x5a3618], 0x4a5c10
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
cmp edx, eax
jle 0x4a4994
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x14]
push 0xc
push eax
call fcn.004a5d90
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x38]
call fcn.0051f8c0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::runtime_error::destructor_void_]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a4b5c
mov ecx, dword [eax]
mov edx, dword [esi + 0x34]
inc edx
mov eax, dword [ecx*4 + 0x5a35a8]
mov ecx, esi
mov dword [esi + 0x34], edx
call eax
test al, al
je 0x4a49d3
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4a499f
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov eax, dword [esi + 0x30]
test ah, 0x20
je 0x4a49ee
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4a49ee
cmp eax, dword [esi + 0x1c]
je 0x4a49ee
mov byte [esi + 0x3d], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
cmp byte [edi + 0x11d], 0
je 0x4a4b71
test byte [esi + 0x31], 4
je 0x4a4a20
cmp byte [esi + 0x3f], 0
je 0x4a4b71
cmp ebp, dword [edi + 0x114]
jae 0x4a4b4e
test bl, bl
je 0x4a4b4e
mov ebx, ecx
mov ecx, dword [eax + 0xc]
inc ecx
mov dword [eax + 0xc], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x2c], edx
mov al, byte [0x65a19c]
test al, 1
jne 0x4a4a99
or al, 1
mov dword [0x5a3600], 0x4a57a0
mov byte [0x65a19c], al
mov dword [0x5a3604], 0x4a5450
mov dword [0x5a3608], 0x4a50f0
mov dword [0x5a360c], 0x4a4d30
mov dword [0x5a3610], 0x4a5b80
mov dword [0x5a3614], 0x4a5bb0
mov dword [0x5a3618], 0x4a5c10
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jle 0x4a4af1
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x24]
push 0xc
push edx
call fcn.004a5d90
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x7c], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x54]
call fcn.0051f8c0
lea ecx, [esp + 0x54]
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::runtime_error::destructor_void_]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a4b5c
mov eax, dword [eax]
mov edx, dword [esi + 0x34]
inc edx
mov ecx, esi
mov eax, dword [eax*4 + 0x5a35a8]
mov dword [esi + 0x34], edx
call eax
test al, al
je 0x4a4b2c
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4a4af8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov eax, dword [esi + 0x30]
test ah, 0x20
je 0x4a4b47
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4a4b47
cmp eax, dword [esi + 0x1c]
je 0x4a4b47
mov byte [esi + 0x3d], 1
mov dl, byte [esp + 0x13]
mov dword [esi + 0x14], ebx
test dl, dl
je 0x4a49ee
mov ecx, dword [edi + 8]
mov dword [esi + 0x2c], ecx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
test dl, dl
je 0x4a4c3c
mov edx, dword [edi + 8]
mov ebp, ecx
mov dword [esi + 0x2c], edx
mov al, byte [0x65a19c]
test al, 1
jne 0x4a4bd7
or al, 1
mov dword [0x5a3600], 0x4a57a0
mov byte [0x65a19c], al
mov dword [0x5a3604], 0x4a5450
mov dword [0x5a3608], 0x4a50f0
mov dword [0x5a360c], 0x4a4d30
mov dword [0x5a3610], 0x4a5b80
mov dword [0x5a3614], 0x4a5bb0
mov dword [0x5a3618], 0x4a5c10
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jle 0x4a4bef
mov ecx, dword [esi + 0x28]
push 0xc
push ecx
call fcn.004a5c30
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a4b5c
mov edx, dword [eax]
mov ecx, esi
mov eax, dword [edx*4 + 0x5a35a8]
mov edx, dword [esi + 0x34]
inc edx
mov dword [esi + 0x34], edx
call eax
test al, al
je 0x4a4c1e
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4a4bfa
jmp 0x4a4b5c
mov eax, dword [esi + 0x30]
test ah, 0x20
je 0x4a4c39
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4a4c39
cmp eax, dword [esi + 0x1c]
je 0x4a4c39
mov byte [esi + 0x3d], 1
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 0x40]
mov edx, dword [edi + 0x114]
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jae 0x4a49ee
test bl, bl
je 0x4a49ee
inc ecx
mov dword [eax + 0xc], ecx
mov edx, dword [edi + 4]
mov ecx, esi
mov dword [esi + 0x2c], edx
call fcn.004a3360
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret