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

Disassembly:
push 0xffffffffffffffff
push 0x4fd5b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x5364a4]
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x140]
lea ecx, [ebp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x178]
cmp ebp, eax
jne 0x4b642b
mov edx, dword [ebp + 0x78]
lea eax, [esp + 0xc0]
push edx
push eax
mov ecx, ebx
call fcn.00494430
mov ecx, 0xa
mov esi, eax
lea edi, [esp + 0x98]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x90]
push edx
lea ecx, [esp + 0x98]
push eax
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
mov ecx, ebx
call fcn.004c09b0
mov al, byte [esp + 0x18]
test al, 0x10
je 0x4b5701
mov ecx, dword [ebx + 0x64c]
test ecx, ecx
jne 0x4b5701
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4b573b
test al, 1
je 0x4b573b
mov ecx, dword [0x5364a8]
push ecx
mov ecx, ebx
call fcn.004bd710
test eax, eax
je 0x4b573b
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4b573b
mov edx, dword [ebx + 0x1ec]
mov ecx, dword [eax + 0x50]
cmp edx, ecx
jb 0x4b573b
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5c68
test byte [esp + 0x18], 2
je 0x4b5987
mov eax, dword [0x5364d8]
test eax, eax
je 0x4b58e3
mov eax, dword [0x5364f4]
or ebp, 0xffffffff
test eax, eax
jne 0x4b577b
lea eax, [esp + 0x30]
push 0xc
push eax
mov ecx, ebx
call fcn.004b6b00
jmp 0x4b5798
mov ecx, dword [0x5364f8]
mov edx, dword [0x5364fc]
mov eax, dword [0x536500]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
lea esi, [esp + 0x30]
mov edi, 3
mov eax, dword [esi]
test eax, eax
je 0x4b57c1
push 0
push eax
mov ecx, ebx
call fcn.00494380
test eax, eax
je 0x4b57c1
test ebp, ebp
jl 0x4b57be
cmp dword [eax + 0x10], ebp
jge 0x4b57c1
mov ebp, dword [eax + 0x10]
add esi, 4
dec edi
jne 0x4b57a1
mov ecx, dword [esp + 0x14]
xor ebx, ebx
lea edi, [ecx + 0x4e0]
mov esi, dword [edi]
test esi, esi
je 0x4b5804
mov eax, dword [edi + 0x38]
test eax, eax
jle 0x4b5804
xor eax, eax
lea edx, [esp + 0x30]
mov ecx, dword [edx]
test ecx, ecx
je 0x4b57f1
cmp dword [esi + 0x14], ecx
je 0x4b57fa
inc eax
add edx, 4
cmp eax, 3
jl 0x4b57e6
cmp eax, 3
jne 0x4b5804
cmp dword [esi + 0x10], ebp
jl 0x4b580f
inc ebx
add edi, 0x44
cmp ebx, 3
jl 0x4b57d3
jmp 0x4b5817
mov dword [esp + 0x10], 1
mov eax, dword [0x5364f4]
or ebx, 0xffffffff
test eax, eax
jne 0x4b5837
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x30]
push 0xc
push edx
mov ecx, ebp
call fcn.004c54f0
jmp 0x4b5858
mov eax, dword [0x536510]
mov ecx, dword [0x536514]
mov edx, dword [0x536518]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea esi, [esp + 0x30]
mov edi, 3
mov eax, dword [esi]
test eax, eax
je 0x4b5881
push 0
push eax
mov ecx, ebp
call fcn.00494380
test eax, eax
je 0x4b5881
test ebx, ebx
jl 0x4b587e
cmp dword [eax + 0x10], ebx
jge 0x4b5881
mov ebx, dword [eax + 0x10]
add esi, 4
dec edi
jne 0x4b5861
xor edi, edi
lea esi, [ebp + 0x520]
mov eax, dword [esi - 0x38]
test eax, eax
je 0x4b58c5
cmp dword [esi], 0
jle 0x4b58c5
xor eax, eax
lea edx, [esp + 0x30]
mov ecx, dword [edx]
test ecx, ecx
je 0x4b58af
mov ebp, dword [esi - 0x38]
cmp dword [ebp + 0x14], ecx
je 0x4b58b8
inc eax
add edx, 4
cmp eax, 3
jl 0x4b58a1
cmp eax, 3
jne 0x4b58c5
mov eax, dword [esi - 0x38]
cmp dword [eax + 0x10], ebx
jl 0x4b58d0
inc edi
add esi, 0x44
cmp edi, 3
jl 0x4b588f
jmp 0x4b58d8
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x140]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0xe8]
push 1
lea edx, [esp + 0x110]
push ecx
lea eax, [esp + 0xc8]
push edx
push eax
mov ecx, ebx
call fcn.004bab80
mov esi, eax
mov eax, dword [0x5364cc]
test eax, eax
je 0x4b5930
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x10c]
push ecx
lea eax, [esp + 0xc4]
push edx
push eax
mov ecx, ebx
call fcn.004bf640
and esi, eax
test esi, esi
je 0x4b593c
mov dword [esp + 0x10], 1
xor esi, esi
lea edi, [ebp + 0x37c]
cmp dword [edi], 0
jne 0x4b5974
lea ecx, [esp + 0x30]
push esi
push ecx
mov ecx, ebx
call fcn.00499390
mov edx, eax
mov eax, dword [edx]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x98]
cmp edx, eax
jb 0x4b5974
cmp dword [ebp + 0x74], ecx
jae 0x4b597f
inc esi
add edi, 0x44
cmp esi, 3
jb 0x4b5944
jmp 0x4b5987
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5c68
test byte [esp + 0x18], 4
je 0x4b5a93
mov eax, dword [ebx + 0x714]
test eax, eax
jne 0x4b59ce
mov ecx, dword [esp + 0x144]
mov eax, dword [0x536d10]
push ecx
mov ecx, dword [0x536284]
xor edx, edx
test ecx, ecx
sete dl
push edx
lea ecx, [eax + 0x90]
call fcn.0045eca0
mov eax, dword [ebx + 0x718]
test eax, eax
je 0x4b59e0
mov dword [esp + 0x10], 1
mov eax, dword [ebp + 0x1a8]
test eax, eax
je 0x4b5a93
xor edi, edi
mov eax, dword [ebp + 0x1b0]
test eax, eax
je 0x4b5a93
mov ecx, dword [ebp + 0x1b4]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4b5a93
mov edx, eax
mov esi, dword [edx + edi*4]
cmp dword [esi], 0
je 0x4b5a6f
mov eax, dword [esi + 0xc]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5238e8
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b5a3a
mov eax, dword [esi + 4]
test eax, eax
je 0x4b5a6f
mov ecx, dword [esp + 0x14]
push 2
lea eax, [ecx + 0x178]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00498410
mov eax, dword [eax]
mov esi, dword [esi + 0xc]
push eax
push esi
call ebp
add esp, 8
lea ecx, [esp + 0x44]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4b5a80
mov ebp, dword [esp + 0x140]
mov ebx, dword [esp + 0x14]
inc edi
jmp 0x4b59f0
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x140]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5c68
test byte [esp + 0x18], 8
je 0x4b5b1b
mov eax, dword [0x536278]
test eax, eax
jne 0x4b5b1b
mov ecx, dword [ebp + 0x104]
test ecx, ecx
jne 0x4b5abd
xor eax, eax
jmp 0x4b5ac8
mov eax, dword [ebp + 0x108]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x4b5b1b
mov ecx, dword [ebp + 0x104]
mov dl, byte [0x536528]
mov esi, eax
mov edi, 0x14
mov eax, dword [ecx]
cmp dword [eax], 0
je case.default.0x4b5af3
cmp dword [eax + 8], edi
jge case.default.0x4b5af3
mov eax, dword [eax + 0xc]
cmp eax, 4
ja case.default.0x4b5af3
jmp dword [eax*4 + 0x4b6aec]
test dl, 1
je case.default.0x4b5af3
jmp 0x4b5b0d
test dl, 2
je case.default.0x4b5af3
jmp 0x4b5b0d
test dl, 4
je case.default.0x4b5af3
mov dword [esp + 0x10], 1
add ecx, 4
dec esi
jne 0x4b5adf
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5c68
test byte [esp + 0x18], 0x40
je 0x4b5b7c
mov eax, dword [ebp + 0x17c]
test eax, eax
je 0x4b5b7c
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x98]
cmp ecx, edx
jae 0x4b5b7c
cmp ecx, 0x1d
jae 0x4b5b7c
mov ecx, dword [eax]
push 0
inc ecx
push ecx
mov ecx, ebx
call fcn.00495320
test eax, eax
je 0x4b5b7c
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x98]
cmp edx, ecx
ja 0x4b5b7c
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x74]
cmp eax, ecx
ja 0x4b5b7c
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5c68
test byte [esp + 0x18], 0x20
je 0x4b5bda
lea ecx, [esp + 0x98]
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, ebx
call fcn.004c0bc0
test eax, eax
mov esi, 1
je 0x4b5bdf
mov dword [esp + 0x10], esi
jmp 0x4b5bdf
mov esi, 1
test byte [esp + 0x18], 0x80
je 0x4b5c6d
mov eax, dword [ebp + 0x494]
mov ecx, dword [ebx + 0x7d4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4b5c18
cmp dword [ebx + 0x808], 2
jne 0x4b5c18
mov dword [ebx + 0x808], 0
mov ecx, ebx
call fcn.004c1160
test eax, eax
je 0x4b5c27
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x1f4]
cmp eax, esi
jne 0x4b5c6d
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0x1d4]
lea edx, [eax + 1]
cmp ecx, edx
ja 0x4b5c6d
cmp eax, dword [esp + 0x4c]
jne 0x4b5c6d
lea eax, [esp + 0x30]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, ebx
call fcn.004c3af0
test eax, eax
jl 0x4b5c6d
mov dword [esp + 0x10], esi
jmp 0x4b5c6d
mov esi, 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5e77
mov eax, dword [esp + 0x18]
test ah, 1
je 0x4b5cbc
mov eax, dword [ebp + 0x1d0]
test eax, eax
je 0x4b5cbc
lea eax, [ebx + 0x7d4]
lea ecx, [esp + 0x98]
push eax
lea edx, [esp + 0x8c]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
call fcn.004c4220
test eax, eax
je 0x4b5cbc
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5e77
mov eax, dword [esp + 0x18]
test ah, 0x20
je 0x4b5d13
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp + 0x190]
xor eax, eax
test ecx, ecx
je 0x4b5d0a
mov edx, dword [ebp + 0x194]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x4b5d0a
mov edx, dword [ebp + 0x190]
mov edx, dword [edx + eax*4]
cmp dword [edx], 0
je 0x4b5d07
mov dword [esp + 0x10], esi
inc eax
jmp 0x4b5ce2
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5e77
mov eax, dword [esp + 0x18]
test ah, 4
je 0x4b5e3d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x674]
cmp ecx, 2
jne 0x4b5d81
mov edx, dword [eax + 0x164]
xor ecx, ecx
test edx, edx
je 0x4b5e3d
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x168]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4b5e3d
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x164]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x4b5d7e
cmp dword [eax + 0xc], 2
je 0x4b5e35
inc ecx
jmp 0x4b5d43
mov ecx, dword [eax + 0x674]
cmp ecx, 1
jne 0x4b5e3d
mov esi, dword [esp + 0x14]
mov edi, dword [0x53658c]
xor ebx, ebx
mov ebp, dword [esi + 0x164]
test ebp, ebp
je 0x4b5e3d
mov ecx, dword [esi + 0x168]
sub ecx, ebp
sar ecx, 2
cmp ebx, ecx
jae 0x4b5e3d
mov edx, dword [esi + 0x164]
mov eax, dword [edx + ebx*4]
cmp dword [eax], 0
je 0x4b5e2f
mov ecx, dword [eax + 0xac]
test ecx, ecx
je 0x4b5e2f
mov edx, dword [eax + 0xc]
cmp edx, 1
je 0x4b5de2
cmp edx, 4
jne 0x4b5e2f
mov esi, dword [ecx + 0x58]
mov ecx, dword [esp + 0x144]
mov edx, dword [eax + 0xb0]
mov dword [esp + 0x30], esi
sub ecx, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fild dword [eax + 0x14]
fild qword [esp + 0x30]
fmulp st(1)
fmul qword [0x504b30]
faddp st(1)
call sub.MSVCRT.dll__ftol
lea ecx, [edi + edi*2]
lea edx, [ecx + ecx*4]
lea ecx, [esi + edx*4]
cmp eax, ecx
jae 0x4b5e35
mov esi, dword [esp + 0x14]
inc ebx
jmp 0x4b5da2
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5e77
mov eax, dword [esp + 0x18]
test ah, 0x80
je 0x4b5e77
mov edx, dword [esp + 0x144]
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
push edx
push esi
mov ecx, edi
call fcn.004bf2f0
test eax, eax
je 0x4b5e82
mov dword [esp + 0x10], 1
jmp 0x4b5e82
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5fa4
test dword [esp + 0x18], 0x80000
je 0x4b5f5b
mov ecx, dword [edi + 0x26c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x4b5f5b
mov edx, dword [edi + 0x270]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x4b5f5b
mov ecx, dword [esp + 0x14]
mov ebp, 1
mov edx, dword [ecx + 0x26c]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x10], 5
jge 0x4b5f2b
mov edi, dword [esi + 8]
test edi, edi
je 0x4b5f14
mov edx, dword [edi + 0xc]
xor eax, eax
test edx, edx
jle 0x4b5f14
mov ebx, dword [esi + 0x14]
lea ecx, [edi + 0x1c]
cmp dword [ecx], ebx
je 0x4b5f03
inc eax
add ecx, 0x44
cmp eax, edx
jl 0x4b5ef5
jmp 0x4b5f14
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edi + ecx*4 + 0x10]
test eax, eax
jne 0x4b5f14
xor ebp, ebp
cmp dword [esi], 0
je 0x4b5f2b
test ebp, ebp
je 0x4b5f2b
mov edx, dword [esp + 0x144]
mov eax, dword [esi + 0x20]
cmp edx, eax
jge 0x4b5f48
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4b5eac
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b5fa4
test dword [esp + 0x18], 0x800000
je 0x4b5fa4
mov ecx, dword [esi + 0x478]
xor eax, eax
test ecx, ecx
je 0x4b5fa4
mov edx, dword [esi + 0x47c]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x4b5fa4
mov edx, dword [esi + 0x478]
mov edx, dword [edx + eax*4]
cmp dword [edx], 0
jne 0x4b5f99
inc eax
jmp 0x4b5f75
mov ebx, 1
mov dword [esp + 0x10], ebx
jmp 0x4b5fa9
mov ebx, 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b6183
test dword [esp + 0x18], 0x400000
je 0x4b5ff9
mov edx, dword [esi + 0x488]
xor ecx, ecx
mov ebp, 0x32
test edx, edx
je 0x4b5ff9
mov eax, dword [esi + 0x48c]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4b5ff9
mov eax, dword [esi + 0x488]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x4b5ff2
cmp dword [eax + 8], ebp
jae 0x4b5ff5
inc ecx
jmp 0x4b5fcc
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b6183
test dword [esp + 0x18], 0x20000
je 0x4b6050
mov edx, dword [edi + 0x94]
xor ecx, ecx
mov esi, 0xb
test edx, edx
je 0x4b6050
mov eax, dword [edi + 0x98]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4b6050
mov eax, dword [edi + 0x94]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x4b6049
cmp dword [eax + 0x10], esi
jne 0x4b6049
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x4b604c
inc ecx
jmp 0x4b601c
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b6183
test dword [esp + 0x18], 0x40000
je 0x4b60ae
mov edx, dword [edi + 0x94]
xor ecx, ecx
mov esi, 0xc
test edx, edx
je 0x4b60ae
mov eax, dword [edi + 0x98]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4b60ae
mov eax, dword [edi + 0x94]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x4b60a7
cmp dword [eax + 0x10], esi
jne 0x4b60a7
mov ebp, dword [eax + 0x18]
test ebp, ebp
je 0x4b60a7
mov ebp, dword [eax + 0x1c]
test ebp, ebp
jne 0x4b60aa
inc ecx
jmp 0x4b6073
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b6183
test dword [esp + 0x18], 0x1000000
je 0x4b6183
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x734]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x730]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x144]
cmp eax, ecx
jb 0x4b6183
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x710]
test ecx, ecx
je 0x4b617b
mov ecx, dword [eax + 0x54]
test ecx, ecx
jne 0x4b6109
xor eax, eax
jmp 0x4b6111
mov eax, dword [eax + 0x58]
sub eax, ecx
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x4b6183
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x54]
mov esi, dword [edx]
mov edi, dword [esi + 0x30]
test edi, edi
jle 0x4b612e
mov edi, dword [esi + 0x2c]
test edi, edi
jg 0x4b6138
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4b611e
jmp 0x4b6183
cmp ecx, eax
jge 0x4b6183
mov eax, dword [esp + 0x140]
xor ecx, ecx
add eax, 0x368
mov edi, 3
mov edx, dword [eax]
test edx, edx
je 0x4b6171
mov ebx, dword [eax + 0x38]
mov ebp, dword [esi + 0x20]
cmp ebx, ebp
jbe 0x4b6171
test ecx, ecx
je 0x4b616f
mov ebx, dword [ecx]
mov ebp, dword [edx + 0x10]
mov ebx, dword [ebx + 0x10]
cmp ebx, ebp
jae 0x4b6171
mov ecx, eax
add eax, 0x44
dec edi
jne 0x4b614f
test ecx, ecx
je 0x4b6183
mov dword [esp + 0x10], 1
xor edi, edi
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4b6aac
test dword [esp + 0x18], 0x100000
je 0x4b624d
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x694], edi
jne 0x4b624d
cmp dword [esi + 0x720], edi
jne 0x4b624d
cmp dword [0x536274], edi
jne 0x4b624d
cmp dword [esi + 0x7dc], edi
jne 0x4b6245
mov ecx, dword [esp + 0x144]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], edi
call fcn.004c50f0
cmp eax, edi
je 0x4b624d
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004c5350
test eax, eax
jne 0x4b6231
mov ecx, esi
call fcn.0048e370
mov edx, dword [esp + 0x1c]
mov esi, 3
mov dword [edx + 0xc0], eax
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [ecx + 0xc4]
inc eax
div esi
mov dword [ecx + 0xc4], edx
jmp 0x4b624d
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x7e0], eax
mov dword [esi + 0x7dc], ecx
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4b6aac
test dword [esp + 0x18], 0x200000
je 0x4b6aac
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x720]
test eax, eax
jne 0x4b6aac
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x144]
mov edx, ecx
mov ebx, dword [eax + 0x7c8]
mov eax, dword [eax + 0x78c]
sub edx, ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jb 0x4b6aac
mov edx, dword [esp + 0x14]
sub ecx, dword [edx + 0x800]
cmp ecx, 0xa
jl 0x4b6aac
mov eax, dword [0x536d10]
lea ecx, [eax + 0x90]
call fcn.0045ece0
mov ecx, dword [0x536d10]
add ecx, 0x90
call fcn.0045ed10
mov edx, dword [0x536d10]
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x30], esi
lea ecx, [edx + 0x90]
mov dword [esp + 0x18], ebp
call fcn.0045ec90
cmp eax, ebp
mov dword [esp + 0x6c], eax
je 0x4b6415
cmp esi, ebp
mov dword [esp + 0x1c], ebp
jle 0x4b6415
mov ebx, dword [esp + 0x14]
lea esi, [eax + 0xc]
mov eax, dword [esi - 8]
cmp eax, ebp
je 0x4b63f3
mov eax, dword [esi + 0x44]
cmp eax, ebp
je 0x4b63e0
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x144]
sub ecx, eax
cmp ecx, 2
jge 0x4b63e0
mov edx, dword [esi - 4]
mov eax, dword [ebx + 0x190]
cmp edx, eax
je 0x4b63e0
mov eax, dword [ebx + 0x654]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4b63e0
mov eax, dword [esi - 4]
push eax
mov ecx, ebx
call fcn.00496e90
cmp eax, ebp
jne 0x4b639b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b63e0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004a0df0
cmp eax, ebp
je 0x4b63e0
cmp dword [0x53651c], ebp
je 0x4b63b5
xor ecx, ecx
mov edx, dword [esi - 4]
cmp edx, dword [0x536520]
sete cl
cmp ecx, ebp
je 0x4b63e0
lea ecx, [esp + 0x44]
add eax, 0x90
push ecx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x50], ebp
call fcn.00499cf0
mov edx, dword [esp + 0x44]
mov edi, eax
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, ebp
jg 0x4b640d
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
cmp eax, edx
jge 0x4b6415
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
add esi, 0x54
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b6315
jmp 0x4b6415
mov dword [esp + 0x10], 1
mov edx, dword [0x536d10]
lea ecx, [edx + 0x90]
call fcn.0045ed00
jmp 0x4b6aac
cmp dword [ebx + 0x694], esi
jne 0x4b6aac
mov edi, dword [esp + 0x18]
test edi, 0x200
je 0x4b6471
mov eax, dword [0x536274]
test eax, eax
jne 0x4b6471
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x140]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004bd010
test eax, eax
je 0x4b6471
mov dword [esp + 0x10], 1
test edi, 0x400
je 0x4b6a46
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x694]
test eax, eax
jne 0x4b6a46
mov eax, dword [esp + 0x140]
cmp dword [eax + 0x188], 3
jae 0x4b6a46
mov ecx, edx
mov eax, dword [ecx + 0x674]
cmp eax, 1
je 0x4b6a46
mov eax, dword [edx + 0x674]
cmp eax, 2
je 0x4b6a46
mov edi, dword [esp + 0x140]
push 2
lea eax, [esp + 0x34]
push edi
push eax
mov esi, edx
call fcn.00498410
mov eax, dword [eax]
mov ecx, dword [esi + 0x65c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4b6a42
mov eax, 3
mov ecx, dword [esi + 0x674]
cmp ecx, eax
jne 0x4b6531
mov ecx, dword [esi + 0x674]
cmp ecx, eax
jne 0x4b6a42
push edi
mov ecx, esi
call fcn.004bdee0
test eax, eax
jne 0x4b6a42
mov ecx, dword [edi + 0x450]
test ecx, ecx
jne 0x4b653f
xor eax, eax
jmp 0x4b654a
mov eax, dword [edi + 0x454]
sub eax, ecx
sar eax, 2
test eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
jle 0x4b65fe
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x450]
mov edi, dword [eax + edx*4]
cmp dword [edi], 0
je 0x4b65e9
mov ecx, dword [esp + 0x14]
push edi
call fcn.004951d0
test eax, eax
jle 0x4b65e9
mov ebx, dword [esp + 0x14]
push 2
mov ecx, ebx
lea eax, [ebx + 0x178]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00498410
mov esi, eax
lea ecx, [esp + 0x30]
push edi
push ecx
mov ecx, ebx
mov dword [esp + 0x140], 0
call fcn.004984e0
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4b65fe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b655e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jne 0x4b6a42
mov al, byte [esp + 0x43]
xor edi, edi
mov byte [esp + 0x20], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov cl, byte [esp + 0x43]
mov dword [esp + 0x138], 1
mov byte [esp + 0x78], cl
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov ebx, dword [esp + 0x140]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x138], 2
mov edx, dword [ebx + 0x1c4]
mov eax, dword [ebx + 0x14c]
lea ebp, [ebx + 0x14c]
push edx
push eax
call fcn.004bddd0
test eax, eax
je 0x4b67d3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov esi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4b6746
mov edx, dword [esp + 0x24]
cmp edx, edi
je 0x4b66a9
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4b66ae
mov ecx, 1
cmp edx, edi
jne 0x4b66b6
xor eax, eax
jmp 0x4b66bb
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, edi
mov dword [esp + 0x30], eax
jge 0x4b66c7
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push edi
push esi
push eax
call fcn.004b1440
mov ebx, eax
push ebp
push 1
push ebx
lea ecx, [esp + 0x2c]
call fcn.004b1410
mov ecx, dword [esp + 0x28]
add ebx, 4
push ebx
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.004b1440
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x34]
add esp, 4
lea ecx, [edi + eax*4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x20]
call fcn.004a9270
mov ebx, dword [esp + 0x140]
lea edx, [edi + eax*4 + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
xor edi, edi
jmp 0x4b67d3
xor cl, cl
cmp cl, 1
jae 0x4b6790
lea edx, [eax + 4]
lea ecx, [esp + 0x20]
push edx
push eax
push eax
call fcn.004b1440
mov eax, dword [esp + 0x28]
mov edx, 1
mov ecx, eax
push ebp
sub ecx, esi
sar ecx, 2
sub edx, ecx
lea ecx, [esp + 0x24]
push edx
push eax
call fcn.004b1410
mov eax, dword [esp + 0x28]
cmp esi, eax
je 0x4b67ce
mov ecx, dword [ebp]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4b6782
jmp 0x4b67ce
push eax
push eax
add eax, 0xfffffffc
lea ecx, [esp + 0x28]
push eax
call fcn.004b1440
mov eax, dword [esp + 0x28]
mov ecx, eax
add eax, 0xfffffffc
cmp esi, eax
je 0x4b67bb
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4b67ac
lea eax, [esi + 4]
cmp esi, eax
je 0x4b67ce
mov ecx, dword [ebp]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4b67c2
add dword [esp + 0x28], 4
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx + 0x154]
cmp eax, edi
je 0x4b69ac
mov edx, dword [ebx + 0x158]
sub edx, eax
sar edx, 2
cmp ebp, edx
jae 0x4b69ac
mov ecx, dword [ebx + 0x1c4]
lea edi, [ebp*4]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + eax]
push edx
call fcn.004bddd0
test eax, eax
je 0x4b69a0
mov ecx, dword [ebx + 0x154]
mov eax, dword [esp + 0x28]
add edi, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov esi, eax
sar ecx, 2
cmp ecx, 1
mov dword [esp + 0x30], edi
jae 0x4b6920
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4b6855
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4b685a
mov ecx, 1
test edx, edx
jne 0x4b6862
xor eax, eax
jmp 0x4b6867
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x6c], eax
jge 0x4b6873
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
mov ebp, dword [esp + 0x28]
add esp, 4
mov ebx, eax
cmp ebp, esi
mov edi, ebx
je 0x4b68a3
push ebp
push edi
call fcn.004b13b0
add ebp, 4
add esp, 8
add edi, 4
cmp ebp, esi
jne 0x4b688f
mov eax, dword [esp + 0x30]
push eax
push edi
call fcn.004b13b0
mov ebp, dword [esp + 0x30]
add esp, 8
cmp esi, ebp
je 0x4b68d0
add edi, 4
push esi
push edi
call fcn.004b13b0
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebp
jne 0x4b68bc
mov ecx, dword [esp + 0x24]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x28]
add esp, 4
lea eax, [ebx + edx*4]
test ecx, ecx
mov dword [esp + 0x2c], eax
jne 0x4b68f4
xor eax, eax
jmp 0x4b68fd
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + eax*4 + 4]
inc ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x140]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ebp
xor edi, edi
jmp 0x4b67d9
xor ecx, ecx
mov dword [esp + 0x30], ecx
sar ecx, 2
cmp ecx, 1
jae 0x4b6958
mov edx, 1
push edi
sub edx, ecx
lea ecx, [esp + 0x24]
push edx
push eax
call fcn.004b1410
mov ecx, dword [esp + 0x28]
mov eax, esi
cmp esi, ecx
je 0x4b699b
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4b694b
jmp 0x4b699b
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x38], ecx
push ecx
lea ecx, [esp + 0x2c]
call fcn.004b1440
mov eax, dword [esp + 0x28]
mov ecx, eax
add eax, 0xfffffffc
cmp esi, eax
je 0x4b6987
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4b6978
lea ecx, [esi + 4]
mov eax, esi
cmp esi, ecx
je 0x4b699b
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4b6990
add dword [esp + 0x28], 4
inc ebp
xor edi, edi
mov dword [esp + 0x1c], ebp
jmp 0x4b67d9
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x4b69ee
mov eax, dword [esp + 0x28]
sub eax, ecx
test eax, 0xfffffffc
je 0x4b69ee
cmp dword [ebx + 0x98], edi
je 0x4b69e6
mov eax, dword [0x5364ac]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.004bda80
cmp eax, edi
je 0x4b69ee
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
push eax
mov dword [esp + 0x84], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
xor esi, esi
push ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test edi, 0x4000
je 0x4b6a81
cmp dword [esi + 0x1ec], 0x5dc
jb 0x4b6a81
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x140]
push edx
push eax
mov ecx, esi
call fcn.004bf020
test eax, eax
je 0x4b6a81
mov dword [esp + 0x10], 1
test edi, 0x10000
je 0x4b6aac
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x140]
push ecx
push edx
mov ecx, esi
call fcn.004bf2f0
test eax, eax
je 0x4b6aac
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x140]
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x34]
mov dword [eax + 8], ecx
lea ecx, [eax + 0x34]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 8