Function at 0x4a6400
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4fcaf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x20]
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 0
call fcn.0044e9a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString_4
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov edx, dword [esi + 0x190]
mov ecx, dword [ebp + 0x14]
lea edi, [esi + 0x178]
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x20]
push str._uin_:__d___did_:_d__ty_:3__n_:_d__nf_:0__pos_:_d
push eax
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x8c]
add esp, 0x18
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push ecx
push 7
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x78]
push 4
push ecx
mov ecx, esi
call fcn.004930b0
test eax, eax
mov dword [esp + 0x68], eax
je 0x4a6533
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
fild qword [esp + 0x14]
fmul qword [ebp + 0x28]
call sub.MSVCRT.dll__ftol
mov edx, dword [edi + 0x140]
mov ecx, dword [edi + 0x74]
sub edx, eax
sub ecx, eax
mov dword [edi + 0x140], edx
mov dword [edi + 0x74], ecx
cmp dword [ebp + 8], 0x178
jne 0x4a6507
mov eax, 0x51eb851f
mul ebx
mov eax, dword [ebp + 0x5c]
shr edx, 5
cmp edx, eax
jb 0x4a6502
mov edx, eax
sub eax, edx
mov dword [ebp + 0x5c], eax
push edi
push 0x52c568
lea ecx, [esp + 0x24]
call fcn.0044fea0
push ecx
mov edx, esp
mov dword [esp + 0x7c], esp
push eax
push edx
call fcn.0040c8b0
add esp, 8
mov ecx, esi
call fcn.00493ee0
jmp 0x4a6614
cmp dword [ebp + 8], 0x178
jne 0x4a6580
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
mov byte [esp + 0x60], 4
call fcn.004a1280
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a6614
mov eax, dword [eax + 8]
cmp eax, 0xffffe846
je 0x4a659d
cmp eax, 0xffffe820
jne 0x4a6614
mov eax, dword [ebp + 0xc]
mov dword [ebp], 0
add ebp, 0xc
test eax, eax
je 0x4a6614
push eax
mov ecx, esi
call fcn.004a3680
test eax, eax
jne 0x4a6614
mov eax, dword [esi + 0x78]
push ebp
push 1
lea ecx, [esi + 0x70]
push eax
call fcn.0047f0e0
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x4a65d7
xor edx, edx
jmp 0x4a65e2
mov edx, dword [esi + 0x148]
sub edx, eax
sar edx, 2
xor ecx, ecx
test edx, edx
jle 0x4a6606
mov eax, dword [esi + 0x144]
mov ebx, dword [ebp]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0xc]
cmp edi, ebx
jne 0x4a6601
mov dword [eax], 0
inc ecx
cmp ecx, edx
jl 0x4a65e8
mov ecx, esi
call fcn.004a37b0
mov ecx, esi
call fcn.004a36c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 0
call fcn.0044eec0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0044eec0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 0x14